If you are new to C# programming language, then this blog post will help you to write your first C# program. I used "Microsoft Visual Studio 2010" to write this first "Hello World" program.
So,Installed the "Microsoft Visual Studio" on your PC and follow the step by step instruction given bellow:
Step 1: Start Visual Studio 2010
Start Visual Studio 2010 |
Step 2:. Click on New Project or Ctrl+Shift+N to create new project
Step 3: Click on Console Application. You may change the Name, Location and Solution Name
C# Console application |
Step 4: Write the code inside the main function.
Console.WriteLine("Hello World ! My first C# program.");
Hello World programming code in C# |
Step 5:. You first C# program is done.
Step 6:. Now run to program to see the output.
Click Debug ->Start without debugging or press ctrl+F5
Step 7:. The result will be show on a dos screen:
C# Hello World programming output |
Step 8:. Enjoy programming with C#. Now you may write as may text as you want using the C# programming language. Head First C: A Learner's Guide to Real-World Programming with C#, XAML, and .NET
No comments:
Post a Comment