STEP 1 : Open ( Microsoft Visual Studio 2010 )
STEP 2 : Click on ( New Project... ) option displayed on the Start Page. OR
Click on ( File Menu -> New -> Project )
STEP 3 : Select the Appropriate Location where you want to save the project.
STEP 4 : Write the following code in 'Program.cs' which is already open by default.
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("First Console Application Using C#");
Console.ReadLine();
return;
}
}
}
STEP 5 : Press F5 for output.
STEP 6 : output is displayed in command window.
STEP 2 : Click on ( New Project... ) option displayed on the Start Page. OR
Click on ( File Menu -> New -> Project )
STEP 3 : Select the Appropriate Location where you want to save the project.
STEP 4 : Write the following code in 'Program.cs' which is already open by default.
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("First Console Application Using C#");
Console.ReadLine();
return;
}
}
}
STEP 5 : Press F5 for output.
STEP 6 : output is displayed in command window.