为啥输出是0啊,请大佬把我看看啊
#include <stdio.h>
float qian(int shijian,int gongli)
{ float qian;
if(shijian>=23||shijian<5)
{
if(gongli<=3)
{
qian == 14;
return qian;
}
else
{
qian == 14+(2.76*(gongli-3));
return qian;
}
}
else
{
if(gongli<=3)
{
qian == 14;
return qian;
}
else
{
qian == 14+(2.3*(gongli-3));
return qian;
}
}
}
int main()
{
float sum=qian(6,12)+qian(18,12);
printf("每天打车的总费用%f\n",sum);
return 0;
}