Question: c + + Write a program that asks the user to enter the month ( letting the user enter an integer in the range of
c Write a program that asks the user to enter the month letting the user enter an integer in the range of through and the year. The program should then display the number of days in that month. Use the following criteria to identify leap years: Determine whether the year is divisible by If it is then it is a leap year if and only if it is divisible by For example, is a leap year but is not. If the year is not divisible by then it is a leap year if and only if it is divisible by For example, is a leap year but is not. Here is a sample run of the program: Enter a month : Enter Enter a year: Enter days
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
