fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim intInput As Integer
  6. System.Console.WriteLine("Enter an integer…")
  7. intInput = Val(System.Console.ReadLine())
  8. If intInput = 1 Then
  9. System.Console.WriteLine("Thank you.")
  10. ElseIf intInput = 2 Then
  11. System.Console.WriteLine("That's fine.")
  12. ElseIf intInput = 3 Then
  13. System.Console.WriteLine("Too big.")
  14. Else
  15. System.Console.WriteLine("Not a number I know.")
  16. End If
  17. Console.ReadKey()
  18. End Sub
  19. End Class
Success #stdin #stdout 0.03s 24224KB
stdin
Standard input is empty
stdout
Enter an integer…
Not a number I know.