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 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
Get step-by-step solutions from verified subject matter experts
