If you use int variables you won't have to truncate decimal places
Have you revised the code to follow the steps you used in post#8?
Type: Posts; User: Norm
If you use int variables you won't have to truncate decimal places
Have you revised the code to follow the steps you used in post#8?
Try solving the problem manually for 133 seconds. Write down the equations and arithmetic operations you would use to get the hours, minutes and seconds for 133 seconds. Post the steps here.
...
Try doing solving the problem using pencil and paper.
Try 133 seconds.
Try 3733 seconds.
Can you post the program's current output so we can see what the problem is?
Add some comments explaining what is wrong with the output and say what it should be.
Execute the program with...