[单项选择题] 有如下程序段,该程序段执行完后,执行循环的次数是 total=0 Counter=1 Do Print Counter tot
2021-07-20
[单项选择题] 有如下程序段,该程序段执行完后,执行循环的次数是 total=0 Counter=1 Do Print Counter total=total + Counter Print total Counter=Counter+1 If total>10 Then Exit Do End If Loop While Counter <=10
A.5
B.10
C.15
D.20
正确答案:A
参考解析:解析:本题考查Do…Loop While语句,共执行了5次,total=1+2+3+4+5>10。
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
