How to print a blank line in C#?

To display a line in C#, use the Console.WriteLine().

Under that set a blank line −

Console.WriteLine(" ");

The following is the code that displays a blank line −


 Live Demo

using System;
namespace Program {
   public class Demo {
      public static void Main(String[] args) {

         Console.WriteLine(" ");
         Console.WriteLine("Displayed a blank line above!
");          Console.ReadLine();       }    } }


Displayed a blank line above!
karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know