Wednesday 20 July 2011

how to determine leap year

Leap year is a year containing one extra day (or, in the case of lunisolar calendars, a month) in order 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, a calendar that had the same number of days in each year would, over time, drift with respect to the event it was supposed to track. By occasionally inserting (or 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.

now i'm will make a program how to determine leap year, chek it out...
.


if the input divided by 4 and the result is 0 then the program will determine that it is a leap year if not then it will decide it is not leap year

final result in dev like this

No comments:

Post a Comment