在这里插入代码片
```#include<stdio.h>
#include<stdlib.h>
int main()
{ int a,b;
int i,j,temp=0;
scanf("%d%d",&a,&b);
if(a>b)
{for(i=1;i<=a;i++)
for(j=1;j<=b;j++)
{if(a+b==i*i&&a-b==j*j)
{temp=1;
printf("%d",temp);}}}
else
printf("error!");
system("pause");
return 0;
}
判断自然数对
猜你喜欢
转载自blog.csdn.net/hht113353407267/article/details/84890605
今日推荐
周排行