Register | Sing In

New posts

Stacks in C programming Linked Lists in C programming File Input/Output in C programming Check prime numbers in C Programming C Programming Enumeration C Programming Union

Archives

2013-10 2013-09 2013-08

C# How to create simple console application?

August 2, 2013 Posted by: GPA Views: 1320 1 comments

Task

How to create simple console application "Hello world" using C#? 

Solution 

To solve this problem, we will use the visual studio 2010 c#. We present an easy way to create simple console application step by step.

 
1. If you have Visual studio 2010 or 2008 run it.
2. Go to menu item File->New->Project.
3. In opened window form select Visual C#.
4. In main function write next code:

Console.Write("Hello world");
Console.ReadKey();

Function ReadKey() we use for delay.

5. Press F5 to start debugging

     
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Hello_Word{
    class Program{
      static void Main(string[] args){
           Console.Write("Hello world");
           Console.ReadKey();
       }
   }
}

Output:

1 Comments...

1. Peter

June 2, 2013, 1:21 pm
Avatar
Good material
Leave a Reply

Please, Sing In to leave a Reply for this material.



Online Chat

LiveZilla Live Help

Popular posts

Function strtok in C programming Check prime numbers in C Programming C Programming Union Linked Lists in C programming File Input/Output in C programming C Programming Enumeration

RSS-subscribe

New materials

Subscribe