Computer Science, asked by jatin7407, 10 months ago

Draw a flowchart and write an algorithm to input time in seconds and convert it into the hr:min:sec format

Answers

Answered by chandananaini2003
23

Answer:

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

Similar questions