โ Back to Printing
Question 302
Read and Print a Name
Read and Print a Name
Read a single-word name from standard input withcin, then print a greeting. For example, if the input isAlice, the output is: Hello, Alice!
Expected Output:
Hello, Alice!
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.