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.
In this tutorial, we will learn how to write a simple “Hello World!” program in C# Console Application.
1 2 3 4 5 6 7 8 9 10 | class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.ReadKey(); } } |
When you run the program, the output will be:
Online Code:
programme prise de masse et de force
[…] C# Program to Hello World! […]