For语句问题4
private sub command1_click()dim i as integer,x as integer
for i = 1 to 6
if i = 1 then x = i
if i <=4 then
x =x+1
else
x=x+2
end if
next i
print x
end sub
结果为9,可是初学的我不太懂,哪位高手指点指点!
2008-12-01 23:24
2008-12-02 08:05
2008-12-02 12:03