C# Program Excecution

C# Program Execution

Program To Practice

  • Install IDE to Practice C#.
  1. When you open a Visual Studio you will get this below screen
  1. After clicking on Create a new project you get the below screen you have to search (Console App) in the search bar
  1. Select Console App (.Net Framework) project then click on next button as shown below
  1. After clicking on next you will get the below screen which shows
  • Project name
  • Location of project
  • Solution name
  • Framework

Then click on the create button

  1. You will get the below screen with the code provided by Visual Studio

6. Write a sample code given below inside the Main method – Console.WriteLine(“Hello World!”); for print Hello World! In Console and Console.ReadLine(); is for stopping the console so we can read Hello World! , then click on the start button to run the code.

SampleCode – Console.WriteLine(“Hello World!”);
                         Console.ReadLine();

  1. You will get below output on your screen