Question: in c code Write a program that reads a month number (1 for January, 12 for December) and the day number and displays the date

in c code Write a program that reads a month number (1in c code

Write a program that reads a month number (1 for January, 12 for December) and the day number and displays the date after days, entered by the user. For simplicity, assume that each month has 30 days except for February that always counts for 28 days. Sample output: Enter the month and day : 35 Enter the days forward: 50 After 50 days, the date of 3/5 will be 4/25. Test cases: (3, 5, 50, 4/25), (1, 1, 15, 1/16), (1, 1, 33, 2/4), (1, 1, 60, 3/3), (1, 1, 370, 1/13)

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!