大神看看们看看哪里出错了
#include <stdio.h>
int main()
{
double sum;
sum =taxifee(9,12)+taxifee(18,12);
return 0;
}
double taxifee(double clock,double miles)
{
double fee;
if(miles<=3)
{
fee = 14;
}
else
{
if(clock>=23||clock<5)
{
fee = 13+1+2.3*(miles-3)*1.2;
printf("夜间打车的费用是%lf",fee);
}
else
{
fee = 13+1+2.3*(miles-3);
printf("日间打车的费用是%lf",fee);
}
}
return fee;
}