First Program in C Sharp

By Prof. Fazal Rehman Shamil

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

 

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.