C# Hello World First Example Program

Here we have your very first Hello World C# example Program.

The First program you write in any programming language will introduce you to the syntax of that programming language.

normally we write Hello World program where we print Hello World string to the screen. you can print whatever you want.

Example C# Program

 1 using System;
 2 namespace HelloWorld
 3 {
 4     class Hello 
 5     {
 6         static void Main() 
 7         {
 8             Console.WriteLine("Hello World!");
 9             // Keep the console window open to see output
10             Console.WriteLine("Press any key to exit.");
11             Console.ReadKey();
12         }
13     }
14 }