#P0009. 票价优惠
票价优惠
1. Description
Calculate ticket price based on visitor's age
- For visitors under 18, the price is 10
- For visitors age between 18 and 60 (18 & 60 included), the price is 20
- For visitos over 60, the price is 15
2. Input & Ouptut
Input:
- An integer representing age
- Use
input()as input. Notice that the value you get frominput()is a string
Output:
- An integer representing price
- Use
print()for your output
Example
# Input:
12
# Output:
10
# Input:
60
# Output:
20