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 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
Get step-by-step solutions from verified subject matter experts
