logo image

C# program to print a multiline Hello World!

28


Following program shows you how to print a multiline Hello World!. In this program we use \n for multi lines

using System;

class MainClass {
  public static void Main (string[] args) {
    Console.WriteLine ("Hello \nWorld!");
  }
}

Output:

Hello 
World!