A PLATFORM TO LEARN | CODE | ACHIEVE
" Programming is the real test of your creativity,its all about how you turn ideas into codes. "
ENTER THE YEAR :2000
2000 is a leap year
What we did - Our Approach
In this problem we have to determine whether a year is leap year or not.A leap year (also known as an intercalary year or bissextile year) is a calendar year containing one additional day (or, in the case of lunisolar calendars, a month) added to keep the calendar year synchronized with the astronomical or seasonal year. Because seasons and astronomical events do not repeat in a whole number of days, calendars that have the same number of days in each year drift over time with respect to the event that the year is supposed to track. By inserting (also called intercalating) an additional day or month into the year, the drift can be corrected. A year that is not a leap year is called a common year.
To check whether a year is a leap year or not,we rely on two conditions :
1.Year should be divisible by 4 and not divisible by 100.
2.Year should be divisible by 400.
INTERESTING READ FOR YOU :
For any Queries,suggestions,feel free to Mail us at :
For reporting any kind of copyright voilation,mail us at : email@example.com
© copyright CODE OF GEEKS 2018