#includestdio.hvoid TOH(int n,char x,char y,char z) { if(n0) { TOH(n-1,x,z,y); printf("%c to %c",x,y); TOH(n-1,z,y,x); }}int main() { int n=3; TOH(n,'A','B','C');}
Not registered? Create an account
Forgot Password?
Already a registered user? Login