diff --git a/Tower_of_hanoi.cpp b/Tower_of_hanoi.cpp new file mode 100644 index 0000000..1b88add --- /dev/null +++ b/Tower_of_hanoi.cpp @@ -0,0 +1,29 @@ +#include +using namespace std; + +string tower(int n,char s,char a,char d) +{ + if(n==1) + { + cout<<" "<>n; + //calling the TOH + tower(n,'A','B','C'); + + return 0; + + +return 0; +}