求问大佬,哪里错了
#include <stdio.h>
float Cost(int s,int clock)
{
float menoy;
if(s <= 3)
{
menoy = 14;
}
else
{
if(clock >= 23||clock < 5)
{
menoy = 14+(s-3)*2.3*1.2;
}
else
{
menoy = 14+(s-3)*2.3;
}
}
return menoy;
}
float main()
{
float x;
float x1 = Cost(12,9);
float x2 = Cost(12,18);
x = x1+x2;
printf("小明每天打车的总费用为%f",x);
return 0;
}