// See https://aka.ms/new-console-template for more information
for (int i = 1; i < 10000; i++)//先这么着吧。
{
double a=Math.Sqrt(i);
double b = Math.Sqrt(a + 100);
double c = Math.Sqrt (a + 166);
if(b%1==0& c % 1 == 0)
{
Console.WriteLine(i);
}
}
错误永远比正确重要
最新推荐文章于 2024-07-10 16:30:57 发布