C# Program to display "Hello, World!"


This content was proof-read by Grammarly. You can Try Grammary for FREE

Problem

Write a program in C# to display “Hello, World!” on the screen.

C# Program to display “Hello, World!” in Console Window.

This is a simple C# program that displays “Hello, World!” on the console window.

using System;
namespace AbundantcodeCSharpApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            Console.ReadLine();
        }
    }
}

Output

Hello, World!

SNAGHTMLa03fbe2
%d bloggers like this: