Question: Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if
Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2012, the program should display that February 2012 had 29 days. If the user entered month 3 and year 2015, the program should display that March 2015 had 31 days.
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
Number of days in a month Program plan Prompt the user to enter month and year Finding number of day... View full answer
Get step-by-step solutions from verified subject matter experts
