Forezz

программесты

Jan 31st, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. a = int(input())
  2. word = "программист"
  3. if a % 10 == 0 or 10 < a < 20 or 10 < a % 100 < 15 :
  4.     plus = "ов"
  5. elif a % 10 == 1:
  6.     plus = ""
  7. elif a % 10 <= 4:
  8.     plus = "а"
  9. else:
  10.     plus = "ов"
  11. print(a, word + plus)
Add Comment
Please, Sign In to add comment