+ 1
Please help me
Given the age of a person as an input, output their age group. Here are the age groups you need to handle: Child: 0 to 11 Teen: 12 to 17 Adult: 18 to 64 Sample Input 42 Sample Output Adult
1 Answer
0
# In python:
age = int(input())
if age <= 11:
print("Child")
elif 12 <= age <= 17:
print("Teen")
elif 18 <= age <= 64:
print("Adult")