VB.Net Example 1 - Windows Console Application

Module Module1
' A small program in VB.Net Console Application
' Validating if the number entered is less than 10,100 or greater.
Sub Main()
Dim Num As Integer
Console.Write("Enter the Number")
Num = Int32.Parse(Console.ReadLine())
If Num < 10 Then
Console.WriteLine("Number is Less than 10")
ElseIf Num < 100 Then
Console.WriteLine("Number is Less than 100")
Else
Console.WriteLine("An invalid number was entered")
End If

Console.ReadLine()
End Sub

End Module

Int32.Parse: Converts the string representation of a number in a specified style to its 32-bit signed integer equivalent.