Programming Course in C# ¡Free!

Solution A. Formats and lines

 Thursday, May 25, 2017 published by Exercises C#

using System;
public class Exercise
{
    public static void Main( )
    {
         // using only Console.Write
         Console.Write("Hello\nJonny!\n");
         
         // using only Console.WriteLine 
         Console.WriteLine("Hello\nJonny!");
         
         // using parameters         
         Console.Write("{0}", "Hello\nJonny!");
    }
}