Question: 18. Write a C program to convert a given integer (in days) to years, months and days, assumes that all months have 30 days

18. Write a C program to convert a given integer (in days)

18. Write a C program to convert a given integer (in days) to years, months and days, assumes that all months have 30 days and all years have 365 days. Go to the editor Test Data : Input no. of days: 2535 Expected Output: 6 Year(s) 11 Month(s) 15 Day(s)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a C program that converts a given number of days into years months and days include stdio h in... View full answer

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 Programming Questions!