Question: Write a program to determine whether a year is a leap year or not. Note any year divisible by 4 is a leap year, however

Write a program to determine whether a year is a leap year or not. Note any year divisible by 4 is
a leap year, however if the same year is divisible by 100, it is not unless it is divisible by 400. So
the year 1900 was not a leap year but the year 2000 was. How many leap years have there been
since this convention was decreed by Pope Gregory XIII in 1582? What are these years?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!