Write a C Program to understand the use of continue statement
#include<stdio.h>
int main(void)
{
int n;
for(n=1; n<=5; n++)
{
if(n==3)
continue;
printf("Number=%d\n",n);
}
printf("Out of for loop\n");
return 0;
}
Output
Number=1
Number=2
Number=4
Number=5
Out of for loop