You are on page 1of 1

#include<constream.

h>
#include<dos.h>
void main()
{
clrscr();
int i=0;
while(!kbhit());
{
gotoxy(5,20);
cout<<i;
gotoxy(5,20);
cout<<" ";
gotoxy(i,1);
cout<<"X";
gotoxy(i-1,1);
cout<<" ";
delay(100);
i++;
}
getch();
}

You might also like