Math, asked by geeta000000, 3 months ago

write a program that reads 4 digit year and test whether it is leap year or not​

Answers

Answered by Anonymous
1

Step-by-step explanation:

Java Program to check Leap Year

If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.

If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4.

If the year is evenly divisible by 400, go to step 4. ...

The year is a leap year (it has 366 days).

The year is not a leap year (it has 365 days).

Similar questions