This preview shows page 1. Sign up to view the full content.
Unformatted text preview: printf("enter the second time format 10:20:30 "); scanf("%d:%d:%d",&hr,&min,&sec); t2=getsec(hr,min,sec); if(t1>t2) t=t1-t2; else t=t2-t1; fsec=t%60; t=t/60; fmin=t%60; fhr=t/60; printf("The difference between two time is %d:%d:%d",fhr,fmin,fsec); getch(); }...
View Full Document
This note was uploaded on 11/06/2010 for the course UBIT 411 taught by Professor Saleemelahi during the Spring '10 term at University of Karachi.
- Spring '10