You are viewing a single comment's thread. Return to all comments →
what is the logic of this.....man!!!!
here, the return statement returns in boolean. where the given conditions in the problem are put.a year is a leap year if it is divisible by 4 and 400 but not divisible by 100.
You may find the logic here.
Thanks for this , this page cleared everything about Leap years !