C Program using continue statement
In this program, You will learn how to implement a continue statement in c.
if (condition) {
continue;
}
Example: How to implement a continue statement in c.
#include<stdio.h>
int main() {
int i;
for (i = 1; i <= 10; i++) {
if (i == 6)
continue;
printf("%d \n", i);
}
printf("Exit From loop");
return 0;
}
Output:
1
2
3
4
5
7
8
9
10
Exit From loop