ModdersCentral

Full Version: VB.NET Odd or Even Number
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
 System.Console.writeline("******************************")
       
       System.Console.writeline("Enter a number:")
dim num = integer.parse(System.Console.read)
if (num mod 2) = 0 then
  System.Console.writeline("is Even" )
else 
  System.Console.writeline("is Odd" )
  end if
www.000webhost.com