double a = 0.08;int count = 0;while(a<=8848.13){a*=a;count++;}System.out.println("对折次数为"+count);
a是一个小于1的数字,它越乘越小,所以死循环了。应该是a = a * 2;