Private Sub Form_Click()
Randomize
Dim A(100) As Integer
Dim I As Integer, K As Integer
Print "形成的100个数字的数组"
For I = 1 To 100
A(I) = Int(Rnd * 100)
Print A(I);
If I Mod 10 = 0 Then Print
Next
Print "其中<50的数字:"
K = 0
For I = 1 To 100
If A(I) < 50 Then
Print A(I);
K = K + 1
If K Mod 10 = 0 Then Print
End If
Next
Print
Print "共有"; K; "个"
End Sub
已经运行过。有什么问题请留言。
本回答被提问者和网友采纳