- 1

How to Create Logic to Solve Problems ( explain in detail with code ) please 🙏

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

7th Feb 2022, 5:01 PM
Ujawal Tiwari
Ujawal Tiwari - avatar
1 Answer
+ 2
A day has 24 hours, 1 hour has 60 minute, 1 minute has 60 seconds So input × 24 × 60 × 60 You'll get the answer Try with code. if you didn't get I'll explain you again. You must try
7th Feb 2022, 5:18 PM
GURURAJ KL
GURURAJ KL - avatar