C# Program Execution
Program To Practice
- Install IDE to Practice C#.
- When you open a Visual Studio you will get this below screen
- After clicking on Create a new project you get the below screen you have to search (Console App) in the search bar
- Select Console App (.Net Framework) project then click on next button as shown below
- 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
- 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();
- You will get below output on your screen