The do-while loop has the following form:
do statement while condition
While the condition is true, the statement or block of statements is repeatedly executed. When the condition becomes false, the loop is terminated and execution resumes at the statement after the do-while loop. The condition is tested at the bottom of the loop, which means that the statement(s) is always executed at least once.