j

Tuesday, 3 November 2015

Write a program that take time in second and then convert the tim into hh;mm;ss



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int ss,mm,hh;
printf("Enter time in second ::");
scanf("%d%d%d",&hh,&mm,&ss);
hh=ss/3600;
ss=ss%3600;
mm=ss/60;
ss=ss%60;
scanf("%d%d%d",hh,mm,ss);
getch();
}

Subscribe to this Blog via Email :