为什么我的结果出来是71.199997元.....
#include <stdio.h>
int main()
{
int distance= 12 , price=2.3, Time =9||18 , n=2 ;
float total;
{
if(Time < 5||(Time>=23&&Time<24))
{
if(distance<=3)
total = 13;
else
total =( distance - 3 )*price*1.2 + 13;
}
else
{
if(distance <= 3)
total = 13;
else
total =(distance - 3)*price + 13;
}
}
total =(total+ 1 )*n;
printf("小明每天打车的总费用为:%f元。",total);
//我自己算出来是69.4,可是结果不一样
return 0;
}