Transcription: If you want to check the condition only after the statements in a loop have been executed, use a do-while loop. In this example, the message x is 2 is outputted before the condition x less than 2 is evaluated. A do-while loop always executes the body of the loop at least once.