You can use booleans in the condition of a while loop. This will avoid duplicate code in a loop that asks for user input.
No download links available.