早教吧 育儿知识 作业答案 考试题库 百科 知识分享

vb题下列程序运行后,单击命令按钮结果为optionbase1privatesubcommand1click()dima(4,4)fori=1to4forj=1to4a(i,j)=(i-1)*3+jnextjnextifori=3to4forj=3to4printa(j,i)nextjprintnextiendsub

题目详情
vb题下列程序运行后,单击命令按钮结果为
option base 1
private sub command 1_click()
dim a (4,4)
for i =1to 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
▼优质解答
答案和解析
a(1,1)=1 a(1,2)=2 a(1,3)=3 a(1,4)=4a(2,1)=4 a(2,2)=5 a(2,3)=6 a(2,4)=7a(3,1)=7 a(3,2)=8 a(3,3)=9 a(3,4)=10a(4,1)=10 a(4,2)=11 a(4,3)=12 a(4,4)=13输出的为a(3,3) a(4,3) a(3,4) a(4,4)即输出9 12 10 13...
看了 vb题下列程序运行后,单击命...的网友还看了以下: