Executes a statement repeatedly until the value of condition becomes false. The test takes place after each iteration.
Syntax
do statement while ( expression ) ;
expression - any expression of scalar type. This expression is evaluated after each iteration, and if it compares equal to zero, the loop is exited. statement - any statement, typically a compound statement, which is the body of the loop
Explanation
A do-while statement causes the statement (also called the