Question: Write a program to read a integer n from the user, and check whether the year is a leap year or not. Checking whether a

Write a program to read a integer n from the user, and check whether the
year is a leap year or not.
Checking whether a year is leap year or not. Please input a year: 1900
1900 is not a leap year.
...
Checking whether a year is leap year or not. Please input a year: 1996
1996 is a leap year.
...
Checking whether a year is leap year or not. Please input a year: 1998
1998 is not a leap year.
...
Checking whether a year is leap year or not. Please input a year: 2000
2000 is a leap year.
 Write a program to read a integer n from the user,

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!