请各位朋友们看看我这个问题出在哪里啊?
#include <stdio.h>
int main()
{
float taxicost(int Time,int distance);
int a;
printf("please enter Time and distance")
scanf("%d,%d",&Time,&distance);
a=taxicost(Time,distance);
printf ("小明每天打车的总费用是%f元",2*a);
return 0;
}
float taxicost(int Time,int distance)
{
if (distance<=3)
{
taxicost=14;
}
else if(5<=Time<23;distance>3)
{
taxicost=(distance-3)*2.3+14;
}
else if(23<=Time<24||24<=Time<5;distance>3)
{
taxicost=(distance-3)*2.3*1.2+14;
}
return taxicost;
}