#include<stdio.h> void hanoi(int n,char x,char y,char z)
{
static int c = ;
if(n==)
printf("%d. Move disk %d form %c to %c\n", ++c,n,x,z);
else
{
hanoi(n-,x,z,y);
printf("%d. Move disk %d form %c to %c\n", ++c,n,x,z);
hanoi(n-,y,x,z);
}
} void main()
{
hanoi(,'A','B','C');
getchar();
}