Introduction - If you have any usage issues, please Google them yourself
#include stdio.h
#include stdlib.h
void move(char getone,char putone)
{
printf( c-> c\n ,getone,putone)
}
void hanoi(int n,char one,char two,char three)
{
if(n==1)
move(one,three)
else
{
hanoi(n-1,one,three,two)
move(one,three)
hanoi(n-1,two,one,three)
}
}
void main()
{
int m
printf( input the number of disks: )
scanf( d ,&m)
printf( the steps of moving 3d disks:\n ,m)
hanoi(m, A , B , C )
return 0
}