|
发表于 2022-5-29 22:01:44
|
显示全部楼层
#include<iostream>
using namespace std;
int main()
{
int x,i,j,n,m;
int temp;
for(i = 2;i < 168; i=i+2)
{
for(j = 2; j <168; j=j+2)
{
if(i*j==168)
{
m = (i+j)/2;
n = (i-j)/2;
}
}
}
x = m*m-268;
cout <<"m=" << m << "n=" << n << endl;
cout << x << endl;
return 0;
} |
|