Private Sub Command1_Click() Randomize Dim a(10) As Integer m = 1 For i = 1 To 10 a(i) = Int(Rnd * 90) + 10 Print a(i); If a(i) < a(m) Then m = i Next i Print Print "最小元素a("; m; ")="; a(m) PrintEnd Sub