Write an algorithm to convert time entered in seconds to hours, minutes and seconds
Answers
Answered by
1
Answer:
I am not sure maybe
Step 1: START
Step 2: [Read the time in seconds]
Input ss
Step 3 [convert to hours]
Let hh <-- ss/3600
Step 4: [convert to minutes] Let mm <-- (ss mod 3600)/60
Step 5: [convert to seconds]
Let ss <--(ss mod 3600)mod 60
Step 6 [display hh, mm, ss]
Output hh, mm, ss
Step 7: STOP
Answered by
3
Answer:
Step-1 Start
Step-2 Input the time in seconds
Step-3 Convert the no. of seconds in minutes
Step-4 Convert the number of minutes calculated to the number of hours.
Step-5 Leave the no. of seconds as it is as no change is required in changing the no. of seconds into seconds.
Step-6 Stop
Explanation:
Please mark as the brainliest, help me become a genius rank holder :)
Similar questions