← Back to User Input
Question 189
Echo a Character
Echo a Character
Read a single character from standard input and print that same character back with nothing else. Reading a char is a little different from reading a number: put a space before %c in the scanf format string so any leftover whitespace (like a newline) is skipped before the real character is read.Expected Output:
A= 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.