Question: Three characters are read from input into variables char 1 , char 2 , and char 3 . If char 1 , char 2 ,

Three characters are read from input into variables char1, char2, and char3. If char1, char2, or char3 only contains digits, then output "Input is all digits". Otherwise, output "Input is not all digits". End each output with a newline.
Ex 1: If the input is 525, then the output is:
Input is all digits
Ex 2: If the input is c68, then the output is:
Input is not all digits IN C++

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 Programming Questions!