A program to explain unconditional statement CONTINUE
C Programming Language 040
The following code shows how to write a program to explain unconditional statement CONTINUE inside a for loop.
Program
#include <stdio.h>
void main()
{
int i;
for (i = 0; i <= 10; i++)
{
if (i <= 5)
{
continue;
}
printf("%d\n", i);
}
printf("\n");
}
Result
6
7
8
9
10
Last Updated on
Comments