Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N = int(input())
- if len(str(N)) == 2:
- x = N%10
- if x == 0:
- print('Джону',N,'лет')
- elif x == 1:
- print('Джону',N,'год')
- elif x >= 2 and x <=4:
- print('Джону',N,'года')
- elif x >= 5 and x <= 9:
- print('Джону',N,'лет')
- elif len(str(N)) == 1:
- if N == 1:
- print('Джону',N,'год')
- elif N >= 2 and N <=4:
- print('Джону',N,'года')
- elif N >= 5 and N <= 9:
- print('Джону',N,'лет')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement