为什么我也是69.4?
#include <stdio.h>
int distance;
float takeTheBus(int time)
{
float count;
if(time>=23&&time<=5)
{
count=13+(distance-3)*1.2*2.3+1;
}else
{
count=13+(distance-3)*2.3+1;
}
}
int main()
{
distance=12;
float count2=takeTheBus(9)+takeTheBus(18);
printf("小明每天打车总费用%lf",count2);
return 0;
}