Menu

[solved] – Question 97225

Write a program that asks the user to input a word or phrase and then outputs the following information about that phrase:

“All numbers”, if the input is all numbers.
“Does not contain numbers”, if the input does not contain any numbers.
“Contains a {digit}” for each number in the phrase.
Sample Run

Enter your word or phrase: 555
All numbers

Enter your word or phrase: We are #1!
Contains a 1

Enter your word or phrase: a1b2c3d
Contains a 1
Contains a 2
Contains a 3

Enter your word or phrase: computer science
Does not contain number

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *