Question: Using Loops Write a Java Class that computes and prints all the leap year between a starting and ending year. A year is a leap
Using Loops
Write a Java Class that computes and prints all the leap year between a starting and ending year. A year is a leap year if it meets one of the two conditions below: A year is a leap year if it is divisible by 4 and not divisible by 100 (For example, 1980). A year is a leap year if it is divisible by 400 (for example, 2000) Write a program that does the following: 1. Prompts the user for the starting year 2. Prompts the user for the ending year 3. Prints all the leap years between the start year and the ending year separated by a space 4. Ten years or less will be printed on each separate line of output 5. At the end, the program will print the total number of leap years between the start and end years entered by the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
