Question: 4. Leap Year Write a program leap.java that lists all the leap years in the interval [1900, 2100) and states whether each is a leap

 4. Leap Year Write a program leap.java that lists all the

4. Leap Year Write a program leap.java that lists all the leap years in the interval [1900, 2100) and states whether each is a leap year or not. The program then displays all the leap years in that interval. A leap year is a year divisible by 4 but not by 100, or is divisible by 400. > 1902 was not a leap year 1901 was not a leap year 1902 was not a leap year 1903 was not a leap year 1984 was a leap year 2098 was not a leap year 2999 was not a leap year 1984 1988 1912

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 Databases Questions!