This simple program uses the while loop for input validation. The user is prompted to enter a number between 10 and 24. An if else statement is also used to let the user know if the number entered is below the minimum or above the maximum.