Creating Hello World Program in C#

Creating Hello World Program  in C#

We can save C# program with .cs extension.

It is worth to note the following points −

·         C# is case sensitive.

·         All statements and expression must end with a semicolon (;).

·         The program execution starts at the Main method.


Today I will show you how to print a simple “hello world” program.

using System;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Post a Comment