Add two numbers

 Program to add two number in console 

Imports System

Module Program

    Sub Main(args As String())

        Dim a, b, c As Integer

        Console.WriteLine("enter the value of a")

        a = Console.ReadLine()

        Console.WriteLine("enter the vlaue of b")

        b = Console.ReadLine()

        c = a + b

        Console.WriteLine("sum of two numbers is " & c)

        Console.ReadKey()

    End Sub

End Module

OUTPUT


No comments:

Post a Comment

hi