#include
int main( )
{
float x,y;
printf("输入x和y的值:");
scanf("%.2f%.2f",&x,&y);
if(x>0 && y>0)
printf("(%.2f,%.2f)在第一象限!\n",x,y);
else if(x==0)
printf("(%.2f,%.2f)在y轴上!\n",x,y);
else if(x>0 && y<0)
printf("(%.2f,%.2f)在第四象限!\n",x,y);
else if(x<0 && y>0)
printf("(%.2f,%.2f)在第二象限上!\n",x,y);
else if(x<0 && y<0)
printf("(%.2f,%.2f)在第三象限上!\n",x,y);
else (y==0)
printf("(%.2f,%.2f)在x轴上!\n",x,y);
}
else (y==0)
应该是else if(y==0) 啊
scanf("%.2f%.2f",&x,&y);
改为
scanf("%f%f",&x,&y);