Breaking News

How to Compile and Run your First C# Program



1 - Download and Install Visual Studio : Visual Studio
2 - Open Visual Studio
3 - Go to File > New Project > Visual C# > Console Application
4 - Write the project name and click finish
5 - Write the code:

using System;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}

6 - Click Start button and wait until it is compiled and run
8 - Congratulations you wrote the first program in C#

Full Video:

No comments