โ Back to If Statements
Question 240
Ticket Price by Age
Ticket Price by Age
Read an age, then print the ticket category: - under 5: 'Free' - 5 to 17: 'Child' - 18 to 64: 'Adult' - 65 or older: 'Senior'
Expected Output:
Free
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.