A do..while loop is almost the same as a while loop except that the loop body is guaranteed to execute at least once. A while loop says Loop while the condition is true, and execute this block of code, a do..while loop says Execute this block of code, and then continue to loop while the condition is true.