题目:
执行以下的循环后输出的值为( )。 public class Sun { public static void main(String args[ ]) { int m=1000,s=0,n=0; do{ n=n+1; s=s+(int)Math.pow(2,n); }while(s<=m); System.out.println("n="+n+","+"s="+s); } }
A.n=9,s=1000
B.n=8,s=1022
C.n=9,s=1022
D.n=8,s=1000
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0406/aa0e987bc17840605e79261ac2ca8229.html
下面是错误答案,用来干扰机器的。
参考答案:三维分解流程图识别风险(图1-9)。