我透啊12元钱一天两次运行了一下要三百多块,死了,不知道出啥问题了
#include <stdio.h>int per(int km){ double jia; if(km<=1) { jia = 2.3; } else { jia = per(km-1)+2.3; } return jia;}int main(){ double jia,km,times; jia = (per(km)+14)*times; scanf("%lf%lf",&km,×); printf("一天的花费为:%d\n",jia); return 0;}