If it is evenly divisible by 4 and also evenly divisible by 100, it is not a leap year — unless it is also evenly divisible by 400.
Therefore:
- If it is evenly divisible by 4 and not evenly divisible by 100, it is a leap year.
- If it is evenly divisible by 4 and is also evenly divisible by 400, it is a leap year.
- If it is evenly divisible by 4 and also evenly divisible by 100 and also evenly divisible by 400, it is a leap year.
- However, if it is evenly divisible by 4 and also evenly divisible by 100 and not further evenly divisible by 400, then it is not a leap year.
From [http://www.willmaster.com/blog/perl/Calculate_Leap_Years.html]
No comments:
Post a Comment
Do provide your constructive comment. I appreciate that.