diff --git a/Solutions/14.py b/Solutions/14.py new file mode 100644 index 0000000..4ddb3c8 --- /dev/null +++ b/Solutions/14.py @@ -0,0 +1,12 @@ +year = int(input(" Enter the year : ")) + +if (year % 4) == 0: + if (year % 100) == 0: + if (year % 400) == 0: + print("{0} is a leap year".format(year)) + else: + print("{0} is not a leap year".format(year)) + else: + print("{0} is a leap year".format(year)) +else: + print("{0} is not a leap year".format(year))