A leap year in the gregorian calendar system is a year


Question: A leap year in the Gregorian calendar system is a year that's divisible by 4 but not by 100, unless it is also divisible by 400. For example, 1896, 1904, and 2000 were leap years but 1900 was not. Write a function that takes in a year as input and prints whether it's a leap year (or not).

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: A leap year in the gregorian calendar system is a year
Reference No:- TGS02476871

Now Priced at $15 (50% Discount)

Recommended (99%)

Rated (4.3/5)