Question: using C++ Please submit leapyear.cpp that asks for a year strictly after 1581 AD, and then outputs if it was a leap year. What is
using C++

Please submit leapyear.cpp that asks for a year strictly after 1581 AD, and then outputs if it was a leap year. What is a leap year? Usually years that are divisible by 4 are leap years, for example 1996. However, years that are divisible by 100 (for example, 1900) are not leap years, but years that are divisible by 400 are leap years (for example, 2000). (You may use more than one if statement) Please have the output formatted exactly like the following examples (the red text is user input): Enter year strictly after 1581 AD: 1996 This is: A leap year Enter year strictly after 1581 AD: 1900 This is: Not a leap year Enter year strictly after 1581 AD: 2000 This is: A leap year
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
