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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!