diff --git a/CPP/recursion/tower_of_hanoi.cpp b/CPP/recursion/tower_of_hanoi.cpp new file mode 100644 index 00000000..6c6fb48c --- /dev/null +++ b/CPP/recursion/tower_of_hanoi.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +void T(int n,char A,char B,char C) +{ + if(n==1) + { + cout<<"Moved disk 1 from "<