上帝创造世界时作了三根金刚石柱子,在第一根柱子上从下往上按大小顺序摞着64片黄金圆盘,如图7-3所示。上帝命令婆罗门把圆盘从下
#includevoidHanoi(intn,chara,charb,charc);voidMove(intn,chara,charb);intmain(){intn;printf(“Inputthenumberofdisks:”);scanf("%d",&n);printf(“Stepsofmoving%ddisksfromAtoBbymeansofC:\n”,n);Hanoi(n,‘A’,‘B