Question: C++ (Leap Year) Write a program that lets the user enter a year and checks whether it is a leap year. (Hint: A year is

C++

(Leap Year) Write a program that lets the user enter a year and checks whether it is a leap year. (Hint: A year is a leap year if it is EITHER divisible by 400 OR it is divisible by 4 but not 100)

A. Sample run:

Enter a year: 2008

2008 is a leap year

Enter a year: 1900

1900 is not a leap year

Enter a year: 2002

2002 is not a leap year

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!