Soures Code:
/*1064*/
#include<stdio.h>
int main() {
int time1, time2, hrs, mins;
scanf("%d", &time1); scanf("%d", &time2);
mins = time2 % 100 - time1 % 100;
if (mins < 0) {
time2 -= 100;
mins += 60;
}
hrs = time2 / 100 - time1 / 100;
printf("The train journey time is %d hrs %d mins.", hrs, mins);
return 0;
}