do-while loop

do-while loop

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 lo