Question: 5 8 6 2 6 2 4 4 4 7 5 1 6 . 9 3 2 9 y 7 Jump to level 1 Convert
Jump to level
Convert totaldays to years, weeks, and days, finding the maximum number of years, then weeks, then days.
Click here for example
Ex: If the input is then the output is:
Years:
Weeks:
Days:
Note: Assume a year has days. A week has days.
totaldays intinput
Your code goes here
printYears: numyears
printWeeks: numweeks
printDays: numdays
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
