Advertisement
Alinchik

Untitled

Jul 11th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. N = int(input())
  3. if N==1 or (N%10==1):
  4.     print ('Джону N год')
  5. elif 2<=N<=4 or (2<=(N%10)<=4):
  6.     print ('Джону N года')
  7. elif N>=5 or (N%10)>=5:
  8.     print ('Джону N лет')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement