单选题 VB
题号 #2272623

在窗体上画1个命令按钮,并编写如下事件过程:
Private Sub Command1 Click(  )
Dim a(3,3)
For m=1 To 3
For n=1 To 3
If n=m or n=4—m Then
a(m.n)=m+n
Else
a(m,n)=0
End If
Print a(m,n);
Next n
Print
Next m
End Sub
运行程序,单击命令按钮,窗体上显示的内容为(  )。

进入在线模考

参考答案

B

答案解析

B。【解析】本题考查了嵌套的For循环,答案为B选项。

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考