C# Tutorial: Part 3 - Creating First Program Hello World
C# Tutorial: Part 3 - Creating First Program Hello World
Creating Your First C# Application. Creating a Hello World Program.
In this part, I will show about the different parts of a very simple program "Hello World!"
Part 1: program.cs
Part 2: using System;
Part 3: namespace
Part 4: class Program
Part 5: static void Main
Part 6: Console.WriteLine
Part 7: Console.ReadKey
...............................
Create your first program HelloWorld and write the below Code:
Source Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | using System; namespace HelloWorldApp { class Program { static void Main(string[] args) { // Write to console Console.WriteLine("Hello World!"); // Keep the console window open in debug mode. Console.ReadKey(); } } } |
Download Source Code:
To Build the program, click Build >> Build Solution >> Start
You will see the output: Hello World!
.............................................
C# Tutorial: Part 3 - Creating First Program Hello World
Reviewed by eTipsnTrix
on
11:59 AM
Rating:
Reviewed by eTipsnTrix
on
11:59 AM
Rating:

https://www.programingtutorial.com/ccontinue.html
ReplyDelete