哪里有问题啊
#include <stdio.h>
float cost(int c,int miles)
{
float money;
if (miles<=3)
{
money=14;
}
else
{
if (c>=23||c<5)
{
money=13+(miles-3)*2.3*1.2+1;
}
else
{
money=13+(miles-3)*2.3+1;
}
return money;
}
int main()
{
printf("小明打车费用为:%.2f\n",cost(9,12)+cost(18,12));
return 0;
}