1.

1. Write an algorithm to convert days into years, weeks and days.

Answer»

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 .



Discussion

No Comment Found