hello world on csharp code example
Example 1: hello world program in c#
// Hello World! program
namespace HelloWorld
{
class Hello {
static void Main(string[] args)
{
System.Console.WriteLine("Hello World!");
}
}
}
Example 2: c# hello world
using System;
namespace HelloWorldApp {
class Program {
static void Main(string[] args) {
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}
}