salarhadad
28-05-2011, 17:17
main()
{
int h,m,s,t;
printf("enter time to be convertd");
printf("\n hour,minute,second:");
scanf("%d%d",&h,&m);
printf("%d",&s);
t=(60*h+m)*60+s;
printf("\ntime is:%d second.",t);
getch();
}
{
int h,m,s,t;
printf("enter time to be convertd");
printf("\n hour,minute,second:");
scanf("%d%d",&h,&m);
printf("%d",&s);
t=(60*h+m)*60+s;
printf("\ntime is:%d second.",t);
getch();
}