I'm supposed to create a program that inputs a start time and end time in the format hr:min:sec and then finds the total time elapsed. Also, it's using a 24-hour clock. I haven't completely written my code yet but I'm stuck on my loop. I'm trying to make sure that the user enters valid times (less than 60).
I realize I'm not finished yet but I'd like to fix this before moving on. Any ideas?
Can you not use functions? It would simplify things a lot if you wrote a function that prompts the user for the input, validates it, and returns only when the user has entered valid data.