In this article, we have present the concept and algorithm to check if a given year is a leap year or not.
Introduction
A leap year is a year that comes after every 4 years. What makes leap years different is that it has 366 days instead of 365 days.
It takes the earth 365.242190 days to orbit the sun, or 365 days 5 hours 48 minutes and 56 seconds. But for simplicity, only the 365 whole days are considered as a calender year. If the remaining part of the year is not accounted for, over a period ...
Published on June 17, 2022 13:00