How to Write a Hello World Program in C#: Step-by-Step Guide
☰Fullscreen
Table of Content:
Program
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Output
Hello World!
- Assignment 1: C# program to Print Hello World!
- Assignment 2: C# Program to Add Two Integers.