Question: String user _ input is read from input. If all the characters in user _ input are numbers, then output 'All numbers'. Otherwise, if user

String user_input is read from input.
If all the characters in user_input are numbers, then output 'All numbers'.
Otherwise, if user_input ends with '9', then output 'String ends with 9'.
If none of the above are true, output 'No condition fits'.

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!