Tuesday, August 23, 2011

Sleep function in C

#include <dos.h>
#include <stdio.h>
#include<conio.h>
void main()
{
char s[]="milan";
int i;
for(i=0;i<5;i++)
{
printf("%c",s[i]);
sleep(1);
}
getch();
}

No comments:

Post a Comment

Feel free to comment......