In: Computer Science
Write a C++ code that can convert time into hours, minutes, seconds.
It can accept (seconds), (minutes, seconds), (hours, minutes, seconds)
The input can be written in main
It should produce the following output:
(67.4, 14, 5) is 67 Hours, 38 Minutes, 5 Seconds
(127.86) is 0 Hours, 2 Minutes, 8 Seconds
(-3, 73, 2) is -1 Hours, -46 Minutes, -58 Seconds
CODE:
OUTPUT:
if we give any negative value it would not work correctly kindly apologize me
**********For any queries comment me in the comment box*************