偶是初学着高手指正这段小程序哪有毛病
#linclude <math.h>#include <stdio.h>
void main()
{
float x,y,r;
int key;
printf("PLZ in put x y");
scanf("%f%f",x,y);
r=sqrt(x*x+y*y);
if(r==1) key=1;
else if (r>1) key=2;
else key=0;
printf("key=%d",key);
}
有毛病~但是我是在弄不明白毛病出在那里高手指点下~谢谢