c sharp print hello world code example
Example 1: c# hello world
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
// To prevents the screen from
// running and closing quickly
Console.ReadLine();
}
}
}
Example 2: hello world c#
Console.WriteLine("Hello World!");