the official assignment:
"DIRECTIONS: Write a C program which prompts the user
for two times specified in the format hh:mm:ss
(hours:minutes:seconds). Your program should
compute and display the sum of the two times as specified
in the examples below. In the result, hours <= 23, minutes <=59,
seconds <= 59. The output should be followed immediately by
'PROGRAM ENDS', followed by a single newline character."
i.e. if a user enters
then the output should be
I'm sure the modulus operator is involved in this somehow. While our teacher didn't say we couldn't use if:else statements, how would you do this without them?
I tried searching but couldn't find what I was looking for.
and if it matters, we do everything via linux terminal