Hello World
Create a simple C# console application that prints "Hello World" on the screen.
Solution
The first app of every programmer
cs
namespace HelloWorld
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}Building and Running
Using Visual Studio
- Open the project in Visual Studio
- Press F5 or click "Start" to build and run
Using .NET CLI
bash
dotnet runOutput
Hello World!Source Code
Please refer to the GitHub repository.