Question: Write a program to check whether or not an input string is all digits. If the input string is all digits, display All digits.; otherwise,
Write a program to check whether or not an input string is all digits. If the input string is all digits, display "All digits."; otherwise, display "Mixed.". Sample runs Input 1:
154
Output 1:
All digits.
Input 2:
1a23v
Output 2:
Mixed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
