Input Validation

Input validation is used to validate (check) input from the user. Either the data passes the test, or it fails, in which case the program keeps asking, until it receives a valid input.

Task 10 (Input Validation)

A program asks the user's age and checks that they are at least 16 years old before continuing. Write the part of the program that checks the user's age.

Reset Get feedback

Next task