if-else 运行出错
#include "stdio.h"
#include "math.h"
main()
{
double y,x;
printf("请输入x的值");
scanf("%f",x);
if(x>=-10&&x<=4)
y=fabs(x-2);
printf("y=%f",y);
else if(x>4&&x<=7)
y=x+10;
printf("y=%f",y);
else if(x>7&&x<12)
y=x*x*x*x;
printf("y=%f",y);
else
printf("noanswer");
}