Question: Write a complete C ++ program that prompts the user to enter a number between 1 -12, representing a month of the year and a
Write a complete C ++ program that prompts the user to enter a number between 1 -12, representing a month of the year and a year. The program must display the number of days that month has. Use the following criteria to determine leap years: 1. If the year is divisible by 100, it is leap only if it is divisible by 400. 2. If the year is not divisible by 100, it is leap if and only if it is divisible by 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
