Computer Science, asked by mariyamunnisatippasa, 4 months ago

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

Answers

Answered by ItzSarcasticGirl
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 ItzMarineetLover
0

Answer:

the first answer is right

Similar questions