Created
February 15, 2017 15:54
-
-
Save mapreal19/f6f04932471dfa2179a528da66b35af6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim number As Integer = 3 | |
Select Case number | |
Case 1 To 5 | |
Console.WriteLine("Between 1 and 5, inclusive") | |
Case 6, 7, 8 | |
Console.WriteLine("Between 6 and 8, inclusive") | |
Case 9 To 10 | |
Console.WriteLine("Equal to 9 or 10") | |
Case Else | |
Console.WriteLine("Not between 1 and 10, inclusive") | |
End Select |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment