โ Back to If Statements
Question 305
Is It a Digit
Is It a Digit
Read a single character from input. If it is a digit (0-9), printDigit. Otherwise printNot a digit. For example, for input7, print: Digit
Expected Output:
Digit
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.