这样哪里错了?大佬给看一下
#include <stdio.h>
float expense(int n)
{
int a;
float money;
a = 12;
if(a<=3)
{
money = 14;
}
else if(a>3&&5<n<23)
{
money = (a-3)*2.3+14;
}
else
{
money = (a-3)*2.3*1.2+14;
}
return money;
}
int main()
{
printf("小明每天打车费为%f\n",expence(9)+expence(18));
return 0;
}