From a7a8eda8c6f23cc00ae58f522bbf4e9056c3e0c8 Mon Sep 17 00:00:00 2001 From: Hritik Mohapatra <53110765+hritikmohapatra@users.noreply.github.com> Date: Thu, 1 Oct 2020 19:16:12 +0530 Subject: [PATCH] Create leapyear_program --- leapyear_program | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 leapyear_program diff --git a/leapyear_program b/leapyear_program new file mode 100644 index 0000000..50daedc --- /dev/null +++ b/leapyear_program @@ -0,0 +1,8 @@ +y = int(input("Enter the year : ")) +if y%400==0: + print("It is a leap year") +else: + if y%4==0 and y%100!=0: + print("It is a leap year") + else: + print("It is not a leap year")