C# Hello World ExampleThis is a featured page

Create a new Console Application (File/New) and in the stat void Main() add the following code:

Console.Write("Hello, World!");
Console.WriteLine();
Console.ReadKey();


It will print "Hello, World!" into the console and then wait for the user to press a key before closing.

the entire code should look like this:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Write("Hello, World!");
Console.WriteLine();
Console.ReadKey();
}
}
}



Mrgameruler
Mrgameruler
Latest page update: made by Mrgameruler , May 19 2008, 3:20 PM EDT (about this update About This Update Mrgameruler Edited by Mrgameruler

73 words added

view changes

- complete history)
Keyword tags: None
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.