VB6.下列程序段执行后,FOR循环体共执行了几次?
问题描述:
VB6.下列程序段执行后,FOR循环体共执行了几次?
Dim A(20) As Integer
For I = 20 To 2 Step -2
A(I) = A(I) + 2
Next I
答
I = 0,18,16,14,12,10,8,6,4,2,退出循环.
共10次.