Question: Q2. Use while loop to get how many full days, full hours, full minutes and seconds in a given number of seconds. Display the days,

 Q2. Use while loop to get how many full days, full

Q2. Use while loop to get how many full days, full hours, full minutes and seconds in a given number of seconds. Display the days, hours, minutes and the remaining seconds. Display only the units with non-zero values. Sample outputs: 129667 seconds contains 1 day(s), 12 hr (s), 1 min (s) and 7 sec 3601 seconds contains 1 hr(s) and 1 sec 275 seconds contains 4 min(s) and 35 sec

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!