#include void h(int n,int x,int y,int z){if(n>0){h(n-1,x,z,y);printf("%c->%c\n",x,y);h(n-1,y,z,x);}} int main(){ h(5,'A','B','C');}