19th Nov 2017, 8:04 AM
qwerty
qwerty - avatar
+ 10
hey @Saksham I reviewed your code, you should try logic operators. https://code.sololearn.com/cIoV6sZz92am/?ref=app
19th Nov 2017, 8:36 AM
AZTECCO
AZTECCO - avatar
+ 8
#python... print("leap year" if int(input())%4==0 else "not leap year")
19th Nov 2017, 11:57 AM
KĂ€zĂź MrĂźdĂčl HĂžssÀßn
KĂ€zĂź MrĂźdĂčl HĂžssÀßn - avatar
+ 5
here is it in JavaScript console.log(prompt("enter a year ")%4==0);
19th Nov 2017, 11:09 AM
RZK 022
RZK 022 - avatar
19th Nov 2017, 11:40 AM
CalviŐČ
CalviŐČ - avatar
+ 1
https://code.sololearn.com/c6D740SttI71/?ref=app Here's mine
7th Jan 2018, 9:42 AM
Anjali Kushwaha
Anjali  Kushwaha - avatar
0
Some people have their logic wrong here: "There is a leap year every year whose number is perfectly divisible by four - except for years which are both divisible by 100 and not divisible by 400. The second part of the rule effects century years. For example; the century years 1600 and 2000 are leap years, but the century years 1700, 1800, and 1900 are not. This means that three times out of every four hundred years there are eight years between leap years." http://www.wwu.edu/skywise/leapyear.html
9th Apr 2018, 9:55 PM
Emma
0
https://code.sololearn.com/c7v705SH4AY4/?ref=app
9th Apr 2018, 9:56 PM
Emma