Given the values of the two moments in time in the same day: hours, minutes and seconds for each of the time moments. It is known that the second moment in time happened not earlier than the first one. Find how many seconds passed between these two moments of time.
Please don't post any code.
Not a code request question.
What is pseudo code?
Store the 3 integers in different vars. Lets say H (hours), M (min), S (sec).
Convert both times to seconds, knowing that 1 hour = 60 min = 3600 sec.
Use substraction to know the difference. Remember to do (bigger value - smaller value) and not the other way