Learn Programming
Wednesday, February 8, 2012
convert second into minutes and hours
#include<stdio.h>
#include<conio.h>
void main()
{
int a; float b,c;
clrscr();
printf("Enter the time in seconds");
scanf("%d", &a);
b=a/60;
printf("\n The time in minutes is %f",b);
c=b/60;
printf("\nThe time in hours is %f",c);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment