Basic Hello World program written in C#

1 Comment

Testing syntax highlighting with WP-Syntax 🙂
Very simple and more or less the standard template for console applications.

/en-us/dotnet/csharp/programming-guide/inside-a-program/hello-world-your-first-program
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// A Hello World! program in C#.
using System;
namespace HelloWorld
{
    class Hello 
    {
        static void Main() 
        {
            Console.WriteLine("Hello World!");
 
            // Keep the console window open in debug mode.
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}
Categories: .Net, C#

One Reply to “Basic Hello World program written in C#”

  1. I have noticed you don’t monetize your website, don’t
    waste your traffic, you can earn additional cash every month.
    You can use the best adsense alternative for any
    type of website (they approve all websites), for more info simply search in gooogle: boorfe’s tips monetize your website

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.