Advertisement
Guest User

1.12

a guest
Jul 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. a=input()
  2. word="программист"
  3. if a == 0 or a % 10 == 0: suffix="ов"
  4. if a >= 11 and a < 20: suffix="ов"
  5. if a < 11 or a > 20:
  6.   if a % 10 == 1: suffix=""
  7.   if a % 10 == 2: suffix="а"
  8.   if a % 10 == 3: suffix="а"
  9.   if a % 10 == 4: suffix="а"
  10.   if a % 10 == 5: suffix="ов"
  11.   if a % 10 == 6: suffix="ов"
  12.   if a % 10 == 7: suffix="ов"
  13.   if a % 10 == 8: suffix="ов"
  14.   if a % 10 == 9: suffix="ов"
  15. if a % 100 == 11: suffix="ов"
  16.  
  17. print a, word + suffix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement