diff --git a/lab12.py b/lab12.py new file mode 100644 index 0000000..1b6bc78 --- /dev/null +++ b/lab12.py @@ -0,0 +1,13 @@ +year = int(input("Enter a year: ")) + +if year<1582: + print("Non rientra nel calendario gregoriano") +elif year % 4 != 0: + print("Anno comune") +elif year % 100 != 0: + print("Anno bisestile") +elif year % 400 != 0: + print("Anno comune") +else: + print("Anno bisestile") +