Create Console Program in C#

C# is an object oriented language which works on .Net Platform. It is very much similar to C and C++.

Creating your first program:

  1. Open your Visual Studio, it may be any version; this first program will run in all of them.

  2. Create new project using File-> New Project->.

     

  3. A window as shown below will appear and under Installed click Templates. Under Templates click Visual C# and choose Console Application. 



  4. Something like the picture below will appear on your screen.



  5. Now execute the code using the green Start button in the middle of the top bar and you will get a console with ‘Hi’ in it. The screen will look like this.

    output
And you are done with your first program in C#.

Thanks for reading this article, I hope it has helped you.

Please do comment and give your feedback.