有如下程序段,该程序段执行完后,执行循环的次数是()。 total=0 Coun
题型:单项选择题
问题:
有如下程序段,该程序段执行完后,执行循环的次数是()。 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. for(int a=1;a<=10;a++);
B.int a=1; do } a++; }while(a<=10)
C.int a=1; while(a<=10) } a++ }
D.for(int a=1;a<=10;a++) a++;