C# Write console example | C# Examples
12 Jun

C# Write console example

“Console.Write” and “Console.WriteLine” methods in C# puts text on the console window.

This code writes a text on the console window:

namespace CSharpExamples
{
  class Program
  {
      static void Main(string[] args)
      {
          Console.WriteLine("Hello World!");
      }
   }
}

Leave a Reply

Your email address will not be published. Required fields are marked *