The do-while loop runs the body first, then checks the condition. The body always executes at least once, even if the condition starts out false. Syntax: do { /* body */ } while (condition);.
Notice the semicolon after the closing parenthesis. The body runs, then the condition determines if it repeats. Use do-while when you need to execute the body at least once. Common case: prompting for input until the user enters valid data.
The prompt must appear before validation.