Program to print Hello World in VB.NET

Here, we are going to learn how to Program to print Hello World in VB.NET?
Submitted by Nidhi, on November 26, 2020

We, will create a program in VB.Net to print the "Hello World" message on the console screen using WriteLine() method of Console class.

Program/Source Code:

The source code to print "Hello World" in VB.NET is given below. The given program is compiled and executed successfully.

'Program to print "Hello World" in VB.NET.

Module Module1
    
    Sub Main()
        Console.WriteLine("Hello World")
        Console.ReadLine()
    End Sub
    
End Module

Output:

Hello World

Explanation:

In the above program, we created a Module that contains the Main() method, here we printed the "Hello World" message using WriteLine() method of Console class on the console screen.






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.