CJCoding With Joseph
15free / daySign inCreate account

Greet by Name (Practice)

Read a single word (a person's first name with no spaces) from standard input, then print a greeting in the exact form Hello, NAME! For example, if the input is Alice, the output must be Hello, Alice! with the comma, the space, and the exclamation mark exactly as shown. Use %s to read a word into a character array.

Expected Output:

Hello, Alice!

= newline. No newline after the last line.

Hints2 available
Topics:
User Input
📥 Auto-Input:
Alice\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.