Rahul's Programming Heaven
C,C++,Java,C#,.Net, Win32,Visual C++, Windows Programming & How To's. Get All The Solutions.
Blog Archive
Blog Archive
February (1)
March (1)
April (1)
September (2)
August (1)
May (3)
December (1)
September (1)
August (19)
May (7)
November (2)
August (1)
Sunday, August 29, 2010
Convert seconds to HH:MM:SS format
/*
Convert seconds to HH:MM:SS format
*/
#include<stdio.h>
#include<conio.h>
void main()
{
int seconds;
clrscr();
printf("Enter Seconds:");
scanf("%d",&seconds);
printf("%d:%d:%d\n",seconds/3600,(seconds%3600)/60,((seconds%3600)%60));
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment