VB题目 option base0 dim a a =array(1,2,3,4,5,6,7,8,9) for i=0 to 3 print a(5-i)next i end sub
2024-12-29 01:59:28
推荐回答(2个)
回答1:
因为数组a=(1,2,3,4,5,6,7,8,9), For i = 0 To 3是从0开始,那么第一个循环Print a(5 - i) 也就是 a(5 - 0) == 6. 数组 a有9个元素,下标: a (0) ==1; a (1) ==2; a (2) ==3; ........ a (8) ==9;