codeGK
Code it ALL
C Continue - CodeGK
♦ C Continue

♣ About C Continue

Skipping of some values inside the loop is sometimes required, in such cases, continue statement can be used.
Continue statement skips a certain defined expression.

♣ C Continue Syntax

Below is the representation of C Continue Syntax.
Basic Syntax
continue;
Syntax Explanation:
continue : placing this inside any loop can skip that instance of execution

♣ Example1: Continue in For Loop in C

In this example, Odd Numbers will be skipped in For Loop.
Example
Input:
Output:

♣ Example1: Continue in While Loop in C

In this example, Numbers divisible by 3 will be Skipped.
Example
Input:
Output:
Prev_LessonNext_Lesson