纸张折叠成珠穆朗玛峰高度的次数(纸张1cm,珠穆朗玛峰时8848)
class Zhe {
public static void main(String[] args) {
int zhi = 1;
int shan = 8848 * 10 * 10;
int count = 0;
while (zhi <= 8848 * 10 * 10) {
zhi *= 2;
count++;
}
System.out.println(count);
}
}
结果:20
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 13次
怎么回事??
|
|