I'm trying to get a program to display time elapsed...what else do I need here?
Also, I have times to be used as test vectors: time1 3:45:15 and time2 9:44:03....using military time
Code:#include <stdio.h> #include <stdbool.h> elapsed_time (time1, time2) { int time1; int time2; int hour; int min; int sec; }; int main () { elapsed_time (time1, time2) printf("Enter the time right now (hh mm ss): "); scanf("%i%i%i", &time1.hour, &time1.min, &time1.sec); }