C# Hello World: First Console Application Program

This will be a basic console application, we will then explore different data types available in the C# language as well as the control flow statements.

A console application is an application that can be run in the command prompt in Windows. For any beginner on .Net, building a console application is ideally the first step to begin with.

In our example, we are going to use Visual Studio to create a console type project. Next, we are going to use the console application to display a message “Hello World”. We will then see how to build and run the console application.

Let’s follow the below mentioned steps to get this example in place.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DemoApplication
 class Program
  static void Main(string[] args) 
   Console.Write("Hello World");

0 Comment's

Comment Form