CJCoding With Joseph
15per day

Read Single Integer

Write a program that reads a single integer from the user using cin and prints it back with the message:

You entered: [number]

Use the >> operator with cin to read the integer input.

Expected Output:

You entered: 42
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
42\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 (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.