Problem: "Hello, Name!"

Write a method which takes a name as a parameter and prints on the console "Hello, {name}!".

Sample Input and Output

Input Output
Peter Hello, Peter!

Hints and Guidelines

Define a method PrintName(string name) and implement it, after which read a name from the console in the main program and invoke the method by feeding it the name.

Testing in the Judge System

Test your solution here:

results matching ""

    No results matching ""