' Visual Basic 2008 9.0 .NET Examples - Introduction to Selections - Introduction to Visual Basic : Module Example Sub Main() Console.WriteLine("Value ?") Dim value As Integer = Console.ReadLine() ' If value Mod 2 = 0 Then Console.WriteLine("Half of " & value & " is " & value / 2 & ".") Else Console.WriteLine("Double of " & value & " is " & value * 2 & ".") End If ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.