Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / Tohanoi

User Offline
Joined: 26th Sep 2016
Posted: 26th Sep 2016 15:02
using namespace std;
void movedisks(int n,char a,char b,char c);
{​int ch,n;
​cout<<"\nConsidering source peg is A and destination peg is C\n";
​cout<<"And the top most disk is the smallest and is numbered as 1\n";
​{​cout<<"Enter choice : ";
​​​case 1 : cout<<"\nenter the number of disks : ";
​​​case 2 : exit(0);

void movedisks(int n , char a,char b, char c)
​​cout<<"\nMove disk "<<n<<" from peg "<<a<<" to peg "<<c<<endl;


Login to post a reply

Server time is: 2017-09-24 22:00:02
Your offset time is: 2017-09-24 22:00:02