Saturday, January 4, 2014

First 4 Console Applications in VB.NET

Module Prog1

    Sub Main()

        Dim a, b As Integer
        Dim ans As Decimal

        Console.WriteLine("Enter First Value")
        a = Console.ReadLine()

        Console.WriteLine("Enter Sec Value")
        b = Console.ReadLine()

        ans = a + b
        Console.WriteLine("Your Addition Ans = " & ans)

        ans = a - b
        Console.WriteLine("Your Subtract Ans = " & ans)