Skip to content

Instantly share code, notes, and snippets.

@Fonger
Created May 3, 2014 13:58
Show Gist options
  • Save Fonger/c9a87491cabef4dadc2d to your computer and use it in GitHub Desktop.
Save Fonger/c9a87491cabef4dadc2d to your computer and use it in GitHub Desktop.
Sub Main()
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
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment