← Back to User Input
Question 190
Greet by Name (Practice)
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
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.