请问我的代码出了什么错?
#include <stdio.h>
float price(int t,int s)
{
float money;
if(s<=3)
{
money==14;
return 0;
}
else
{
if(t>=23||t<5)
{
money=14+(s-3)*2.3*1.2;
return 0;
}
else
{
money=14+(s-3)*2.3;
return 0;
}
}
}
int main()
{
float money=price(9,12)+price(18,12);
printf("小明每天打车的总费用为:%f\n",money);
return 0;
}
输出为:“小明每天打车的总费用为:0.000000”