Question: Forms often allow a user to enter an integer. Write a program that takes in a string representing an integer as input, and outputs yes
Forms often allow a user to enter an integer. Write a program that takes in a string representing an integer as input, and outputs yes if every
character is a digit
Ex: If the input is:
the output is:
yes
Ex: If the input is:
or any string with a noninteger character, the output is:
no
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
