home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic .NET - Read Less - Learn More / Visual_Basic.NET_Read_Less_Learn_More_Richard_Bowman_Visual_2002.iso / Resources / Code / Ch4-UsingIfStatement / Module1.vb < prev   
Text File  |  2001-07-12  |  383b  |  16 lines

  1. Module Module1
  2.     
  3.     Sub Main()
  4.         Console.WriteLine("Enter a number:")
  5.         Dim x As Integer = CInt(Console.ReadLine())
  6.  
  7.         If x < 5 Then
  8.             Console.WriteLine("That is small.")
  9.         Else
  10.             Console.WriteLine("Good choice.")
  11.         End If
  12.         Console.ReadLine()      ' wait for user to press Enter
  13.     End Sub
  14.     
  15. End Module
  16.