C# program to print Hello World!

Views: 146   

Following program shows you how to print Hello World!.
In this program we use Console.WriteLine() to print hello world

using System;

class MainClass {
  public static void Main (string[] args) {
    Console.WriteLine ("Hello World!");
  }
}

Output:

Hello World!
On By