Question: Write a java program Generate a random int between 1990 and 2020. Then print it check if it's a leap year or not. Note:

Write a java program Generate a random int between 1990 and 2020.

Write a java program Generate a random int between 1990 and 2020. Then print it check if it's a leap year or not. Note: A leap year must satisfy any or both of the following conditions: Divisible by 400 Divisible by 4 and not divisible by 100 Sample output: 2015: false

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!