Say hello
Your first program: read a person's name and greet them.
The input is one line with the name. Print Hello, then the name then !, exactly like that: for Ada, print Hello, Ada!.
Input
One line: a name of 1 to 40 letters and spaces. It doesn't start or end with a space.
Output
One line: the greeting.
The input is read for you. The starter code puts it in variables; write your code under Your code here and print the answer. Changed the code already? Reset () brings the starter back.
Example 1
Input
Ada
Output
Hello, Ada!
Why:
The name goes between Hello, and !.
Example 2
Input
Grace Hopper
Output
Hello, Grace Hopper!
Why:
A name can have spaces in it.
Hints
Was this a good challenge?
- Solved by
- 2
- Submissions
- 2
- Accepted
- 100%