Continue Statement - C Tutorial

Continue Statement

The continue statement skips some statements inside the loop. The continue statement is used with decision making statement such as if...else.

How continue statement works?

Continue Statement

Continue Statement - Example

#include <stdio.h>
int main()
{
	int i;
	for(i=1;i<=10;i++)
	{
		if(i==5)
			continue;
		printf("%d\n",i);
	}
    return 0;
}
Output
1
2
3
4
6
7
8
9
10