编程题,一张足够大的纸,厚0.5毫米,问折叠多少次会超过8844.43米

如题所述

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int exp = 0;
double x = 0.0;
double h = 0.5 * System.Math.Pow(10, -3);
while (x <= 8844.43)
{
exp++;
x = h * System.Math.Pow(2, exp);
}
Console.Write("需要折叠{0}次",exp);
Console.ReadLine();
}
}
}
25次
温馨提示:答案为网友推荐,仅供参考
第1个回答  2008-10-13
没太看懂,描述详细点。
第2个回答  2008-10-13
25
相似回答