In order to getting started with the console application
first start the Visual Studio 2010.
Then click on New Project… as shown below:
Select the Console Application and write the name of the Console
Application as you want and then click on OK.
Now by using this following code we can write our first
program to print the “Hello World”.
using System;
using
System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Hello_World
{
class Program
{
static void Main(string[]
args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
}
}
}
Output:
No comments:
Post a Comment