Home / Programs / Multi-line comment example in C#
Programming Example

Multi-line comment example in C#

👁 459 Views
💻 Practical Program
📘 Step by Step Learning
Multi-line comment in C#

Program Code

using System;

namespace HelloWorld
{
  class Program
  {
    static void Main(string[] args)
    {
      /* The code below will print the words Hello World
      to the screen, and it is amazing */
      Console.WriteLine("Hello World!");    
     }
  }
}

Output

Hello World!

Explanation

None

How to learn from this program

First read the algorithm, then study the program code line by line. After that, compare the code with the output and finally go through the explanation. This approach helps learners understand both the logic and the implementation properly.