Question: Problem: Write a C++ program that determines whether or not a positive input year is a leap year. A year is a leap year if
Problem: Write a C++ program that determines whether or not a positive input year is a leap year. A year is a leap year if it is divisible by four. That is, if the remainder after integer division by 4 is zero. Test the program for an input number of test cases. How many test cases: 3 Enter year: 2008 2000 is a leap year. Enter year: 2021 2021 is NOT a leap year. Enter year: 2024 2024 is a leap year. Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
