continue Statement

Description

The continue statement is used in the body of a C-style for, while, or do-while statement to skip the rest of statements in the body.

Syntax

continue;
for (a = 1 ; a <= 10; a++) {
if (a % 2 != 0) continue;
print (a);
}

The statement prints the even numbers between 1 and 10.