HelloNameTask1

/*Write a method that asks the user for his name and prints “Hello, <name>” 
 (for example, “Hello, Peter!”). Write a program to test this method.*/
using System;

public class HelloNameTask1
{
    public static void Main()
    {
        Console.WriteLine("Please, enter your name");
        string name = Console.ReadLine();
        PrintName(name);
    }

    public static void PrintName(string name)
    {
        Console.WriteLine("Hello, {0}", name);
    }
}