36.0k views
0 votes
Write a program that asks the user to enter a number of seconds and then printsthe same amount of time in days, hours, minutes, and seconds.For example, 3667 seconds is equivalent to 0 days, 1 hour, 1 minute, and 7 seconds.Print out the result in the format:"0 day(s), 1 hour(s), 1 minute(s), and 7 second(s)."

User Deets
by
7.9k points

1 Answer

2 votes

Answer:3363 seconds

Explanation:3363 is equivalent to 0days 1 hour, 1 min, and 7 sec

User Deele
by
7.4k points