CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
User Input
📥 Auto-Input:
A\n
This input is automatically fed to your program's stdin
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.