Question: Write a program month.cpp that asks the user to input the year and the month ( 1 - 1 2 ) and prints the number

Write a program month.cpp that asks the user to input the year and the month (1-12) and prints the number of days in that month (taking into account leap years). You may not use switch case or arrays even if you know these language constructs.
Example
$.? month
Enter year: 2017
Enter month: 5
31 days
 Write a program month.cpp that asks the user to input the

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!