hello world.md - brainchildservices/curriculum GitHub Wiki

Slide 1

C# Hello World - Your First C# Program

The “Hello World!” program is often the first program we see when we dive into a new language. It simply prints Hello World! on the output screen.

The purpose of this program is to get us familiar with the basic syntax and requirements of a programming language.

Slide 2

"Hello World!" in C#

 // Hello World! program
 namespace HelloWorld
 {
     class Hello {         
         static void Main(string[] args)
         {
             System.Console.WriteLine("Hello World!");
         }
     }
 }

When you run the program, the output will be:

 Hello World!