- 3
By using sc class
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
5 Respuestas
+ 1
System.out.println(days*24*60*60);
https://code.sololearn.com/c2z59c96hq55
+ 3
Sanskriti Sen
Please before asking solution show your attempts and avoid to dislike comments unnecessary otherwise you may have been report.
0
1 day = 24 hours
1 hour = 60 minutes
1 minute = 60 seconds
Now take days as input and convert in seconds
0
Adding to AJ:
you will need to multiply *
0
SoloProg
Don't provide direct solution.