展开全部
#include<studio.h>
main()
{float x,y,a;
printf("Please Enter x and y:");
scanf("%f,%f",&x,&y);
a=(x-2)*(x-2)+(y-2)*(y-2);
if(a<1)
printf("A is in the circular");
if(a==1)
printf("A is on the circular");
else
printf("A is out the circular");
}
main()
{float x,y,a;
printf("Please Enter x and y:");
scanf("%f,%f",&x,&y);
a=(x-2)*(x-2)+(y-2)*(y-2);
if(a<1)
printf("A is in the circular");
if(a==1)
printf("A is on the circular");
else
printf("A is out the circular");
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询