Private Sub Command0_Click() Dim a(10, 10) For m = 2 To 4 Fo

十三果冻2022-10-04 11:39:541条回答

Private Sub Command0_Click() Dim a(10, 10) For m = 2 To 4 For n = 4 To 5 a(m, n) = m * n Next n Nex
答案是42.谁能帮我解析一下啊?谢谢!
Private Sub Command0_Click()
Dim a(10, 10)
For m = 2 To 4
For n = 4 To 5
a(m, n) = m * n
Next n
Next m
MsgBox a(2, 5) + a(3, 4) + a(4, 5)
End Sub
不好意思!谢谢啦~

已提交,审核后显示!提交回复

共1条回复
安顺信息港 共回答了22个问题 | 采纳率81.8%
这一题不必详细分析过程也可以得到结果,因为a(m, n) = m * n,所以a数组中的元素的值正好等于其两个下标的积,所以a(2, 5) + a(3, 4) + a(4, 5)=2*5+3*4+4*5=42.
1年前

相关推荐