为啥我的结果不正确?
#include <stdio.h>
float S(float t,float x)
{float m;
if(0<=t<5&&23<=t<24)
{
if(x<=3)
{
m=14;
}
else
{
m=(x-3)*2.3*1.2+14;
}
}
else
{
if(x<=3)
{
m=14;
}
else
{
m=(x-3)*2.3+14;
}
}
return m;
}
int main()
{
printf("%f",S(9,12)+S(18,12));
return 0;
}