You are viewing a single comment's thread. Return to all comments →
Thanks for your detail explanation for this problem.
Could you please explaine to me the relationship of your answer and the problem context, please? Because I didn't understand well the answer.
I want to unerstand how did you formulated these steps in this form you had programmed
In the Gregorian calendar three criteria must be taken into account to identify leap years:
1. The year can be evenly divided by 4;
2. If the year can be evenly divided by 100, it is NOT a leap year, unless;
3. The year is also evenly divisible by 400. Then it is a leap year
Thanks for advance.