Computer Science, asked by navneetvinod1512, 6 months ago

Write a program in Java to input the time in seconds and calculate and display the number of hours , minutes and
seconds
eg: Input is 5400
Number of hours is 1 hr
Number of minutes is 30 minutes
number of seconds is 0 secs
)ARIABLE DESCRIPTION IS REQUIRED OR ALL THE THREE PROGRAMS​

Answers

Answered by Anonymous
20

Answer:

To convert time to a number of hours, multiply the time by 24, which is the number of hours in a day. To convert time to minutes, multiply the time by 1440, which is the number of minutes in a day (24*60). To convert time to seconds, multiply the time time by 86400, which is the number of seconds in a day

Similar questions