Question: Write a c + + program that takes in a C - string as input, and outputs yes if every character in the C -
Write a c program that takes in a Cstring as input, and outputs yes if every character in the Cstring is a digit
The input will contain with a maximum of characters before the null.
You'll need to include additional header files in your solution.
Ex: If the input is:
the output is:
yes
Ex: If the input is:
or
the output is:
no
Hint: Use a loop and the isdigit function.
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
