How to add T1 T2 T3 as it is showing overflow in char
#include
using namespace std;
void towerofhanoi(int n,char str,char dest,char help){
//base case
if(n==0){
return;
}
// recursive case
towerofhanoi(n-1,str,help,dest);
cout<<"Move "<<n<<"th"<<" disc from "<<str<<" to "<<dest<<endl;
towerofhanoi(n-1,help,dest,str);
}
int main(){
int n;
cin>>n;
towerofhanoi(n , 'A' , 'C' , 'B');
return 0;
}