Programming Course in C# ¡Free!

Comments

 Thursday, May 25, 2017 published by Exercises C#
Course > Basic concepts > Comments
Update the previous program Formats and lines so that you only greet one time. Includes / * block code * / to comment all at once.

Input

-

Output

Hello Jonny!
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!");
         */
    }
}