VB程序,非常感谢
1个回答
展开全部
Private Sub Command1_Click()
Dim a(3, 3) As Integer, sum As Integer
Dim i As Integer, j As Integer
For i = 0 To 3
For j = 0 To 3
a(i, j) = Int(Rnd * 11)
Print a(i, j); " ";
Next
Next
For i = 0 To 3
sum = sum + a(i, i)
Next
Print sum
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询