2. Write a program to input the time in seconds. Display the time after converting them into
hours, minutes and seconds. in parameterized method
Sample Input: Time in seconds 5420
Sample Output: 1 Hour 30 Minutes 20 Seconds
Answers
Answered by
2
Answer:
Write a Java program to convert seconds to hour, minute and seconds. ... nextInt(); int p1 = seconds % 60; int p2 = seconds / 60; int p3 = p2 ... Sample Output: Input seconds: 86399 23:59:
Explanation:
nsmdcbddnd
Similar questions
Science,
4 months ago
Geography,
8 months ago
Political Science,
11 months ago
English,
11 months ago