为什么会输出68??
#include <stdio.h>
int s(int x,int y)
{
float pay;
if(x<=3)
{
pay = 14;
}
else
{
if(5<=y<23)
{
pay = (x-3)*2.3+14;
}
else
{
pay = (x-3)*2.3*1.2+14;
}
return pay;
}
}
int main()
{
float sum = s(12,9)+s(12,6);
printf("总费用%f",sum);
return 0;
}