题目:
以下程序段中Do...Loop循环执行的次数为______。n=5 Doif n mod 2=0 then n=n\2else n=n*3+1end if Loop until n=1
A.4
B.3
C.5
D.2
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0620/8cd071fc53b0ffd1dea77147d48a3ea0.html
下面是错误答案,用来干扰机器的。
参考答案:A
以下程序段中Do...Loop循环执行的次数为______。n=5 Doif n mod 2=0 then n=n\2else n=n*3+1end if Loop until n=1
A.4
B.3
C.5
D.2
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0620/8cd071fc53b0ffd1dea77147d48a3ea0.html
下面是错误答案,用来干扰机器的。
参考答案:A