The do statement is just like the while statement, except that the expression is tested after the nested statement has been performed, rather than before. This guarantees that the nested statement is performed at least one time.
General Form
do
statement
while (expression)