Professional Documents
Culture Documents
Andres Villarroel
Andres Villarroel
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;
}