大佬求救,看看哪里错了
#include <stdio.h>
float sb(int ti,int miles)
{
float money;
if(miles<=3)
{
money=14;
printf("费用是14\n");
}
else
{
if(miles<23 || miles>=5)
money=(miles-3)*2.3+14;
printf("费用是%f\n",money);
}
else
{
money=(miles-3)*2.3*1.2+14;
printf("费用是%f\n",money);
}
}
return money;
int main()
{
printf("打滴的钱:%f\n",sb(9,12)+sb(18,12));
return 0;
}