Files
Reisber 520e22fd19 Загрузил файлы по заданию от 03.02.2026
Файлы называются dop, т.к. эти задания я выполнял в рамках дополнительнего задания на одной из первых пар

Signed-off-by: Reisber <admin@reisber.space>
2026-02-03 13:38:04 +00:00

23 lines
681 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
god = int(input())
mesayc = int(input())
visokosny = 0
if ((god%4 == 0) and (god % 100 != 0)) or (god%400 == 0):
print ("Год является високосным")
visokosny = 1
else:
print("Год не является високосным")
visokosny = 0
if (mesayc in (1,3,5,7,8,10,12)):
print ("В месяце 31 день")
elif (mesayc in (4,6,9,11)):
print ("В месяце 30 дней")
elif (mesayc == 2) and (visokosny == 0):
print ("В месяце 28 дней")
elif (mesayc == 2) and (visokosny ==1 ):
print ("В месяце 29 дней")
else:
print ("Месяц введён не коректно")