Question: Write an if statement that displays the word digit if the char variable ch contains a numeric digit. Otherwise, it should display Not a digit.
Write an if statement that displays the word “digit” if the char variable ch contains a numeric digit. Otherwise, it should display “Not a digit.”
Step by Step Solution
3.34 Rating (157 Votes )
There are 3 Steps involved in it
Answe... View full answer
Get step-by-step solutions from verified subject matter experts
