void hanoi(int n,char one,char two,char three);
void Print(char x,char y);
void move(int from,int to,int n)
{
hanoi(n,'1','2','3');
}
void hanoi(int n,char one,char two,char three)
{
if(n==1)Print(one,three);
else
{
hanoi(n-1,one,three,two);
Print(one,three);
hanoi(n-1,two,one,three);
}
}
void Print(char x,char y)
{
printf("%c->%c\n",x,y);
}