Next: Block Statement, Previous: WHILE-DO Statement, Up: Statements [Contents][Index]
The DO-WHILE
statement repeats a statement while a condition,
tested at the end of the loop, is met.
DO statement WHILE expr
The statement statement
is executed. Then the condition
expr
is evaluated. If the condition is zero (false), then
the loop terminates. Otherwise, the loop is repeated until the
condition does become false. The statement is always executed at least
once, even if the condition is initially false.