C++ Continue

tutorial and example
tutorial and example

C++ continue Statement

The continue statement forces to iterate the loop instantly without executing the next statement of loop. Sometime it is required to skip certain test condition within loop, in such case continue statement is applied.

When continue statement is applied inside nested loop, it only affects (iterate) the inner loop.

Syntax

C++ continue Example

Output: