1. Write an algorithm to convert days into years, weeks and days.
Answers
Answered by
3
Explanation:
Logic to convert days to years weeks and days
Input days from user. ...
Compute total years using the above conversion table. ...
Compute total weeks using the above conversion table. ...
Compute remaining days using days = days - ((years * 365) + (weeks * 7)) .
Finally print all resultant values years , weeks and days .
Answered by
0
Answer:
the first answer is right
Similar questions