Write a java program to convert seconds to hour, minute and seconds.
Answers
Answered by
2
Answer:
Input:
Input seconds: 6530
Output:
HH:MM:SS - 1:48:50
Test: Convert HH:MM:SS to seconds again,
1*60*60 + 48*60 + 50 = 3660 + 2880 + 50 = 6530
Similar questions