计算珠峰的高度
public class ZhuFengTest1 {
public static void main(String[] args){
int count=0; //叠的次数
int h=884800; //峰的高度
int l=1; //定义纸的厚度为0.01 变成int型为1
while(l<h){
count++;
l*=2;
System.out.println("叠第"+count+"次厚度是"+l);
}
System.out.println("要叠"+count+"次");
}
}