+ 2

input total days and convert it into year, month, week and days and display the output in the following format

TOTAL DAYS VALUE:567 MY OUTPUT 567 DAYS= 1 YEAR__MONTHS__WEEKS__DAYS

26th Aug 2020, 8:06 AM
Dark Knight
Dark Knight - avatar
3 Answers
+ 2
just some basic knowledge of days in an year , in a month and in a week will work for you.
26th Aug 2020, 8:38 AM
Hima
Hima - avatar
+ 1
Sounds like homework. I'll get right onto it and post the answer for you shortly
26th Aug 2020, 8:47 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
https://code.sololearn.com/choSkpZhl235/?ref=app Assuming every month has 30 days
26th Aug 2020, 5:32 PM
Esra
Esra - avatar