โ Back to Variables
Question 273
Seconds to H:M:S
Seconds to H:M:S
Declare int totalSeconds = 5025. Break it into hours, minutes, and seconds, then print them separated by colons in the exact format below:
1:23:45Expected Output:
1:23:45
Topics:
Variables
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.