First Program in C Sharp

Step 1:

Open visual studio.

How to start visual studio
How to start visual studio

Step 2:

Open visual studio

How to start a new project in visual studio
How to start a new project in visual studio

Step 3:

Visual C#  is selected. Now select “console application”  and then change the name according to your choice.

How to open console application in visual studio
How to open console application in visual studio

Step 4:

Starting view of visual studio before writing program looks like mentioned below;

starting view of visual studio before writing program
starting view of visual studio before writing program

Step 5:

Write the program

Step 6:

Execute the program by short keys

  • F5 for start debugging
  • Ctrl+F5 for start without debugging

Execute the program by interface

How to debug code in visual studio
How to debug code in visual studio

Output

welcome to t4tutorials

List of programs

First Program in C Sharp

C# Program to add two numbers

C# program to Add and subtract two matrices