Question: Write a C program that takes as input a month and year and determines how many days are in the month, and outputs the number
Write a C program that takes as input a month and year and determines how many days are in the month, and outputs the number of days. Thirty days are in September, April, June, and November. All the rest are 31 except for February which could be 28 or 29 depending upon whether the year is a leap year or not. Consider a year a leap year if it is evenly divisible by 4.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
