帮忙看下哪里出错了,谢谢
#include <stdio.h>
int money(int m, int t)
{
float money;
if (m > 3)
{
if (t >= 23 || t < 5)
{
money = (m - 3) * 2.3 * 1.2 + 14;
}
else
{
money = (m - 3) * 2.3 + 14;
}
}
else
{
money = 14;
}
return money;
}
int main()
{
printf("小明每天打车的总费用为:%.1f\n",money(12, 9)+money(12,18));
return 0;
}