diff --git a/Leapyear.py b/Leapyear.py new file mode 100644 index 0000000..821bf0c --- /dev/null +++ b/Leapyear.py @@ -0,0 +1,6 @@ +year = int(input("Enter a year: ")) + +if (year % 400 == 0) or (year % 4 == 0 and year % 100 != 0): + print(year, "is a Leap Year.") +else: + print(year, "is not a Leap Year.")