Convert seconds into time,hour,seconds :C Program Convert seconds into time,hour,seconds :C Program #include<stdio.h> #include<conio.h> void main() { int sec,s,m,h; clrscr(); printf("\nEnter Time in Seconds :"); scanf("%d",&sec); h=sec/3600; sec=sec%3600; m=sec/60; s=sec%60; printf("\n HH-MM-SS=%d:%d:%d",h,m,s); getch(); }
0 comments:
Post a Comment