大神指点一下哪里错了?谢谢
#include <stdio.h>
float cost(int time,int mile)
{
float money;
if(mile<=3)
{
money=14;
printf("打车费14元\n");
}
else
{
if(time<=23||time>=5)
{
money=13+2.3*(mile-3)+1;
printf("打车费%.1元\n",money);
}
else
{
money=13+2.3*(mile-3)*1.2+1;
printf("打车费%.1f元\n",money);
}
return money;
}
int main()
{
float totalMoney=cost(9,12)+(6,12);
printf("打车费用%.1元\n",totalMoney);
return 0;
}