9.2 'do{} while' loop

----------------------

In this loop the block of code containing the body of the loop is

repeated until the conditional expression has the value FALSE.

The result of the conditional expressions is checked after each loop,

and so the code block will be executed at least once.

An example of a 'do {} while' loop in which the body is executed five

times:

count = 0;

do {

count++;

WRITEWORD(count);

WRITELN();

} while (count < 5);

The conditional expression in 'do {} while' must follow the same rules

as 'IF' and 'if'.