Computer Science, asked by guptapriyanka39, 6 months ago

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 kirangusain84
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