CJCoding With Joseph
15per day

Read Character Input

Write a program that reads a single character from the user and prints:

You pressed: [character]

Use %c format specifier with scanf to read the character.

Expected Output:

You pressed: A
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
A\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.