CJCoding With Joseph

Digit Character Check

Read a single character c. If it is a digit (between 0 and 9), print Digit; otherwise print Not a digit.

For example, given the input 7, the program prints:

Digit

Expected Output:

Digit
Topics:
If Statements
๐Ÿ“ฅ Auto-Input:
7
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.