The Continue Keyword (Program)

continue


Program:

#include<stdio.h>

#include<conio.h>


void main()

{

    for(int i=1;i<=10;i++)

    {

        if(i==5)

        {

            continue;

        }

        else

        {

            printf("%d\n",i);

        }

    }

}


Output:

1

2

3

4

6

7

8

9

10

Comments

Post a Comment

Popular posts from this blog

C program to read and display book information using structure

Count positive, negative and zero values in an array

Maximum value from array