Displaying multiple lines with a single statement. - CSharp Language Basics

CSharp examples for Language Basics:Console

Description

Displaying multiple lines with a single statement.

Demo Code

using System;//w  w  w  .j  a va2  s .c  om
class Welcome3
{
   static void Main()
   {
      Console.WriteLine("Welcome\nto\nC#\nProgramming!");
   }
}

Result


Related Tutorials