1 option base 1
private sub command1_click()
dim a(4,4)
for i=1 to 4
for j=1 to 4
a(i,j)=(i-1)*3+j
next j
next i
for i=3 to 4
for j=3 to 4
print a(j,i)
next j
print
next i
end sub
2 private sub command1_click()
a=0
for m=1 to 10
a=a+1
b=0
for j=1 to 10
a=a+1
b=b+2
next j
next m
printa;b
end sub
程序运行后,输出结果是:
a 10 20
b 20 110
c 110 20
d 200 110
怎么循环?望各位高手赐教!!
谢谢~~