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) 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
Heres a C program that converts a given number of days into years months and days include stdio h in... View full answer
Get step-by-step solutions from verified subject matter experts
