You are on page 1of 1

#include<conio.

h>
#include<iostream.h>
#include<stdlib.h>
#include<dos.h>
#define hanoi 4
int x,t3,t2,t,y;
void main()
{
int n[hanoi]={1,2,3,4},y;
char t,t2,t3;
clrscr();
for(int x=1; x<=hanoi; x++)
{
gotoxy(3,y++);

cout << n[x] << endl;
}

for(y=0; y<15; y++)


{
for(x=1; x<=4; x++)
{
for(int s=1; s<=3; s++)
{
cout << "Disco " << n[x] << " --> " << s << endl;
}
}
}
getch();
}

You might also like