Practice
Age Validator
EASYValidation4 marks
Keep reading an age until it is between 5 and 18 inclusive. Output Accepted after a valid age is entered.
Input: One or more integer ages.
Output: Accepted once the input is valid.
Example:
Input: 3
16
Output: Accepted
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: Invalid then valid
Inputs: 3, 16
Expected: Accepted
Test 2: Valid first input
Inputs: 10
Expected: Accepted