问题
单项选择题
有如下程序段,该程序段执行完后,执行循环的次数是 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。