The do-while construct checks the condition after executing the step once. Even though the do-while loop is similar to the while loop, the only difference between a do-while loop and a while loop is that a do-while loop will execute the body at least once, even if the criteria is false:
do
{
loop body;
}
while (condition);