Step 1: Open Visual Studio.
Step 2: Select File -> New -> Project
Step 3: Select Visual C# Template
Step 4: Select Console Application
Step 5: Give Name of Application and Click on OK Button.
Visual Studio will open a Program.cs File; File will have some Namespaces, Class and Main Method.
Step 6: Write the following code (Print number from 1 to 100) in Main Method.
{
for(int count=1;count<=10;count++)
{
Console.WriteLine(count);
}
Console.Read();
}
D
dinesh kumar sharma
@dinesh kumar sharma
Posts
-
first program in visual c#