sec to hr min sec

#include<stdio.h>
#include<conio.h>
void main()
{
 int sec,hr,min;
printf("Enter the Time in seconds:\n");
scanf("%d",&sec);
hr=sec/3600;
min=(sec-(hr*3600))/60;
sec=(sec-(hr*3600))%60;
printf("ime in hour:min:sec is \n%d:%d:%d",hr,min,sec);
getch();
}





Comments

Popular posts from this blog

KM TO CM

volume of sphere