C Sharp for Beginners/Introduction

From Wikibooks, open books for an open world
Jump to navigation Jump to search
 class HelloWorldProgram
 {
    public static void Main()
    {
        System.Console.WriteLine("Hello, world!"); // prints some text on to the screen
        System.Console.ReadKey(); /* waits for the user
        to press a key
        */
    }
 }