Private Sub Command1_Click()
Dim total As Integer
Dim g As Integer
Dim score(5) As Integer
For g = 1 To 5
score(g) = InputBox("คะแนนทีมที่" & g, "ทีม" & g)
Next g
End Sub
Private Sub Command2_Click()
Dim total As Integer
Dim g As Integer
Dim score(5) As Integer
For g = 1 To 5
total = score(g)
Print "คะแนน" & g; " = "; " ทีมที่ " & g; "=" & g; " คะแนน"
Next g
End Sub