- 2

Can anyone discuss me on how to solve this code?

You need a program to convert days to seconds. The given code takes the amount of days as input. Complete the code to convert it to seconds and output the result. Sample Input: 12 Sample Output: 1036800 Explanation: 12 days are 12*24 = 288 hours, which are 288*60 = 17280 minutes, which are 17280*60 = 1036800 seconds.

13th Oct 2022, 8:10 AM
Cutie❤
Cutie❤ - avatar
2 odpowiedzi
+ 4
Cutie❤, you need to try first. If you can't get it to work, review the lessons. If it still isn't clear, copy your code into the code playground and add it here. Someone can then help you.
13th Oct 2022, 9:28 AM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Explanation is already clears it..! 1 day = 24 hour 1 hour = 60mins 1 min = 60seconds 1 day = ?s => 24*60*60 seconds
13th Oct 2022, 8:25 AM
Jayakrishna 🇮🇳