Q. C# Program to Display Hello World on Screen.

Here you will find an algorithm and program in C# programming language to print Hello World on screen. The "Hello World" program is the first step towards learning any programming language and also one of the simplest programs you will learn. All you have to do is display the message "Hello World" on the screen.

Hello World Algorithm

START
  Step 1 → print "Hello World"
STOP


C# Program to Print Hello World

 
using System;
 
// namespace declaration
namespace HelloWorldApp {
 
// Class declaration
class Geeks {
 
    // Main Method
    static void Main(string[] args)
    {
 
        // statement
        // printing Hello World!
        Console.WriteLine("Hello World");
 
        // To prevents the screen from
        // running and closing quickly
        Console.ReadKey();
    }
}
}

Output

Hello World