In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of March 3rd
(this exercise will still be available for submission after that deadline, but without couting towards your grade)
[to understand the context of this problem, you should read the class #01 exercise sheet]
Time can seem endless or fleeting, depending on how you measure it.
Write a program that, given the number of complete days D, calculates and displays the equivalent time in hours H, minutes M, and seconds S.
The input consists of a single integer D representing the number of complete days.
The output should consist of three lines:
D days: H hours
D days: M minutes
D days: S seconds
The following limits are guaranteed in all the test cases that will be given to your program:
2 ≤ D ≤ 1000 | The number of complete days |
Example Input 1 | Example Output 1 |
2 |
2 days: 48 hours 2 days: 2880 minutes 2 days: 172800 seconds |
Example Input 2 | Example Output 2 |
25 |
25 days: 600 hours 25 days: 36000 minutes 25 days: 2160000 seconds |