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 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:
Enter month:
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
