#include<stdio.h> #include<assert.h> int exchange(int count){ count = count - 1; if (count != 0) return 1+exchange(count); } int main(){ int num = 0; int count = 0; printf("請輸入錢數\n"); scanf_s("%d", &num); count = num / 1; printf("%d\n",count+exchange(count)); return 0; }