Programming Fundamentals/Introduction/C Sharp

From Wikiversity
Jump to navigation Jump to search

hello.cs[edit]

// This program displays "Hello world!"
//
// References:
//     https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/hello-world-your-first-program

public class Hello
{
    public static void Main()
    {
        System.Console.WriteLine("Hello world!");
    }
}

Try It[edit]

Copy and paste the code above into one of the following free online development environments or use your own C Sharp compiler / interpreter / IDE.

See Also[edit]