do

Iterative do statement.

Syntax

do statement ; while ( expression ) ;

Description

The do statement has the form:

dostatement while( expression ) ;

The statement is executed at least once, and the expression is evaluated after each execution. If the expression is not zero, the statement is executed again.

Examples

To execute the example below, press or modify the example to try different variations.

Related Links

while , for