Let us look at a simple code that prints the words “Hello World” −
using System; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { /* my first program in C# */ Console.WriteLine(“Hello World”); Console.ReadKey(); } } }