Home

Published

- 1 min read

Hello in C#

img of Hello in C#

The solution for this is noted below

Hello in C#

Solution

   // C# program to print Hello World!
using System;

// namespace declaration
namespace HelloWorldApp {

	// Class declaration
	class Vansh {

		// Main Method
		static void Main(string[] args) {

			// statement
			// printing Hello World!
			Console.WriteLine("Hello World!");

			// To prevents the screen from
			// running and closing quickly
			Console.ReadKey();
		}
	}
}

Try other methods by searching on the site. That is if this doesn’t work