Question: Exercise 1 . 4 Time conversion Write a program to ask the user to input a number ( in seconds ) . Convert it into

Exercise 1.4 Time conversion
Write a program to ask the user to input a number (in seconds). Convert it into the format hour, minute, second, then print the result separated by :. For example, if the input is 3666, your output should be 1 : 1 : 6(as it is 1 hour 1 minute and 6 seconds).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!