+ 13

[Challenge] Check if the year is leap or non-leap year?

Check if any year is leap "366 days" or non-leap "365 days" year? All languages are welcomed!

27th Dec 2017, 10:20 PM
XIII
XIII - avatar
22 Answers
27th Dec 2017, 10:20 PM
XIII
XIII - avatar
+ 27
https://code.sololearn.com/c7VMXRWuJ4l7/?ref=app
4th Mar 2018, 5:58 PM
MeanMachine
MeanMachine - avatar
2nd Apr 2018, 2:23 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 15
//looks like it will be used again for some challenges which will be asked again 😂 https://code.sololearn.com/c9xVV0L6XY4q/?ref=app
28th Dec 2017, 6:36 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
28th Dec 2017, 8:26 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 10
https://code.sololearn.com/cjkCorfgZ46q/?ref=app
28th Dec 2017, 12:51 AM
Kulanga Kaushani
Kulanga Kaushani - avatar
28th Dec 2017, 3:28 PM
LukArToDo
LukArToDo - avatar
+ 7
https://code.sololearn.com/W4lJar4bORpL/?ref=app
27th Dec 2017, 11:05 PM
Calviղ
Calviղ - avatar
28th Dec 2017, 3:06 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 7
https://code.sololearn.com/cL84II6vBrhk/?ref=app as simple as that!!!
28th Dec 2017, 4:28 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
29th Dec 2017, 8:30 AM
Akash Pal
Akash Pal - avatar
28th Dec 2017, 6:45 AM
noobcøder
noobcøder - avatar
+ 4
Also every 400 years a leap year cancels!
28th Dec 2017, 8:39 PM
Leonid Iudakov
28th Dec 2017, 5:02 AM
Mickel
Mickel - avatar
+ 3
https://code.sololearn.com/ccYFn5chrUTu/?ref=app
30th Dec 2017, 6:18 AM
Paul
Paul - avatar
+ 2
Ruby: 2 ways: easy and even more easy https://code.sololearn.com/cneRcgB04IRZ
28th Dec 2017, 6:27 PM
bedawang
bedawang - avatar
+ 2
https://code.sololearn.com/cctWpXxFmA66/#c
29th Dec 2017, 3:00 PM
Cluck'n'Coder
Cluck'n'Coder - avatar
+ 1
My Answer In python '''y means year''' y=int(input("Enter a Year")) if(y%4)==0: if(y%100)==0: if(y%400)==0: print("{0} is a leap year-366Days".format(y)) else: print("{0} is not a leap year-365Days".format(y)) else: print("{0} is a leap year-365days".format(y)) else: print("{0} is not a leap year-366days".format(y))
28th Dec 2017, 9:56 AM
Sirisha Manchala
Sirisha Manchala - avatar
28th Dec 2017, 2:59 PM
Talley Berry
Talley Berry - avatar