+ 12
Java one-liner.
https://code.sololearn.com/c082WyxApePs/?ref=app
+ 10
hey @Saksham I reviewed your code, you should try logic operators.
https://code.sololearn.com/cIoV6sZz92am/?ref=app
+ 8
#python...
print("leap year" if int(input())%4==0 else "not leap year")
+ 5
here is it in JavaScript
console.log(prompt("enter a year ")%4==0);
+ 1
https://code.sololearn.com/c6D740SttI71/?ref=app
Here's mine
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
0
https://code.sololearn.com/c7v705SH4AY4/?ref=app