The do Statement
The do statement has the following syntax:
do
statement
while (condition);
The statement is executed until the condition becomes false
It is similar to a while statement, except that its termination condition is evaluated after the loop body
Previous slide
Next slide
Back to first slide
View graphic version