求各位大神看一下哪里错了,我自己看了半天都没看出哪出问题了!急!
#include <stdio.h> float money(float tim;float km){ float fy; if(tim <= 3){ fy = 13 + 1; } else if(tim < 23 && tim >= 5){ fy = 13 + 2.3 * (km - 3) + 1; } else{ fy = 13 + 2.3 * 1.2 * (km - 3) + 1; } return fy; } int main() { printf("每天车费%f",money(9,12) + money(18, 12)); return 0; }