Greet by Name (Practice)
easyQuestion 190Read 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
Sign in to use hintsTopics
User Input
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.