โ Back to User Input
Question 20
Read Character Input
Read Character Input
Write a program that reads a single character from the user and prints: You pressed: [character] Use cin >> to read the character.
Expected Output:
You pressed: A
Topics:
User Input
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.