Question: Write a C++ program that asks the user to enter a year and a month (month should be 1-12, input validation for the month) and
Write a C++ program that asks the user to enter a year and a month (month should be 1-12, input validation for the month) and pass then to a function to find out how many days in that month. All output should be in the main function. The function prototype likes below: int daysOfMonth(int, int); Use only cout, cin. Don t use printf and scanner, also you can not use public and private.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
