运行失败,想问一下哪里出错了
#include <stdio.h>
float Money(int km, int tim)
{
float a == 2.3;
int b == 13;
int c == 1;
double cost;
if(km>3)
{
if(tim>23||tim<=5)
{
cost = b+1.2*a*(km-3)+c;
}
else
{
cost = b+a*(km-3)+c;
}
}
else
{
cost = b + c;
}
return cost;
}
int main()
{
float sum = Money(12,9)+ Money(12,18);
printf("小明打车费用为:%.2f\n", sum);
return 0;
}