Problem: "Hello, Name!"

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

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: https://judge.softuni.bg/Contests/Practice/Index/594#7.

results matching ""

    No results matching ""