x = int(input("Введите ваш возраст "))
if (x < 5) or x > 20 and x % 10 > 1 and x % 10 < 4:
print(x, "года")
elif x > 20 and x % 10 == 1:
print(x, "год")
else:
print(x, "Лет")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
x = int(input("Введите ваш возраст "))
if (x < 5) or x > 20 and x % 10 > 1 and x % 10 < 4:
print(x, "года")
elif x > 20 and x % 10 == 1:
print(x, "год")
else:
print(x, "Лет")