C# program to print Hello World!


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!