我国最高山峰是珠穆朗玛峰:8848m,我现在有一张足够大的纸张,厚度为:0.01m。请问,我折叠多少次,就可以保证厚度不低于珠穆朗玛峰的高度?
class Test5_2{ public static void main(String[] args){ double gao = 8848; double m = 0.01; int j = 0; while(m<=gao){ j++; m = m *2; } System.out.println(j); } }
class Test5_2{ public static void main(String[] args){ double gao = 8848; double m = 0.01; int j = 0; while(m<=gao){ j++; m = m *2; } System.out.println(j); } }