كود:#include<iostream.h> #include<conio.h>void transfer(int , char , char , char);int main() { int n ; cout << "Welcome to honoi towers" << endl ; cout << "Enter the number of disks" << endl ; cin >> n ; transfer(n , '1' , '2' , '3') ; getch() ; return 0; }void transfer(int n , char from , char to , char temp) { if(n > 0) { transfer(n-1 , from , temp , to); cout << "Move disk " << n << " from " << from << " to " << to << endl ; transfer(n-1 , temp , to , from) ; } }