#include <stdio.h> int count=0; void hanoi(char from,char to,char mid,int num){ if(num>0){ // Input your code count++; } } int main(){ int numOfRings; printf("원판의 개수: "); scanf("%d",&numOfRings); hanoi('A','C','B',numOfRings); printf("총 실행회수: %d\n",count); return 0; }