#include <stdio.h>
#include <math.h>
void main() {
int i = 1, x, y;
while (1) {
x = (int) sqrt(i + 100);
y = (int) sqrt(i + 168);
if ((x * x == i + 100) && (y * y == i + 168)) {
printf("%d", i);
break;
}
i++;
}
}
求数字:一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
猜你喜欢
转载自blog.csdn.net/qq_38490457/article/details/104610671
今日推荐
周排行