continue

Passes control to the next iteration of the nearest enclosing do, for, or while statement in which it appears, bypassing any remaining statements within that code block.

 

Compile & Run:

myVar is now: 0
myVar is now: 1
myVar is now: 2
myVar is now: 4
myVar is now: 5
myVar is now: 6

Leave a Reply