展开全部
Private Sub Form_Click()
Dim A(1 To 5, 1 To 5) As Integer
For i = 1 To 5
For j = 1 To 5
A(i, j) = IIf(i = j Or i + j = 6, 1, 0)
Print Tab(4 * j - 3); A(i, j);
Next
Next
End Sub
运行后,点击窗体
Dim A(1 To 5, 1 To 5) As Integer
For i = 1 To 5
For j = 1 To 5
A(i, j) = IIf(i = j Or i + j = 6, 1, 0)
Print Tab(4 * j - 3); A(i, j);
Next
Next
End Sub
运行后,点击窗体
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询