請問執行圖(十七)的 Visual Basic 程式碼後,在「訊息視窗(MsgBox )」上的顯示數值為何?
(A) 1
(B) 5
(C) 20
(D) 120
Dim i As Integer
Dim result As Integer
result = 1
For i = 1 To 5
result = result * i
Next
If i > 5 Then
MsgBox(result)
ElseIf i <= 5 Then
MsgBox(i)
Else
MsgBox(20)
End If