V22.0002 - ASSIGNMENT 1


Write a program that computes the difference between two time readings. The times are read into the program as 6-digit integers: hhmmss, where hh stands for hour, mm minutes and ss seconds. The difference should be displayed in the same format. The difference can be both positive and negative. You can assume, for now, that the inputs are correct (that is, you are not going to have more than 59 seconds or more than 59 minutes).


Ex:

    Enter first 6-digit time:  23245
    Enter second 6-digit time: 32815
    Time difference:           5530


    Enter first 6-digit time:  123245
    Enter second 6-digit time: 112955
    Time difference:           -10250
Notes and Hints: