Console Programs Example

A View of Basic Console Program

Imports System
Imports System.Collection.Generric
Imports System.Linq
Imports System.Text
Imports System.Threading.Tasks

Namespace ConsoleApplicatoin1
    Class Program
        Private Shared Sub Main(ByVal args As String())
            Dim a, b, c As Integer
            Console.writeLine("Enter A value")
            a = Integer.parseInt(console.readLine())
            Console.writeLine("Enter B value")
            b = Integer.parseInt(console.readLine())
            c = a + b
            console.writeLine("A=" & a & " B=" & b & " C=" & c)
            console.writeLine("A={0} B={1} c={2}", a, b, c)
        End Sub
    End Class
End Namespace


©Copyright 2016 All Rights Reserved LearnDotNetHome.com