static void Main(string[] args)
{
while (true)
{
double a = 0.001;
double b;
for (int i = 1; i <100; i++)//这里面的循环条件可以直接删掉,成死循环,不满足if条件时 跳出
{
b = a * Math.Pow(2,i);//a*(2的i次方)     math.pow(a,b);  a的b次方
if (b<=8848)
{
Console.WriteLine(b+"对折次数"+i);
}


}
Console.ReadLine();
}
}

static void Main(string[] args)
{
while (true)
{
double a = 0.001;
double b;
for (int i = 1; i <100; i++)//这里面的循环条件可以直接删掉,成死循环,不满足if条件时 跳出
{
b = a * Math.Pow(2,i);//a*(2的i次方)     math.pow(a,b);  a的b次方
if (b<=8848)
{
Console.WriteLine(b+"对折次数"+i);
}


}
Console.ReadLine();
}
}

相关文章:

  • 2021-12-19
  • 2022-01-13
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-02-13
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案