0

It’s compiling, but it is not checking if the words are digits or alphabets. Neither is it printing. I included all the header files. What is going on?

Enter image description here

1
  • please post your code here and not in an image
    – UpAndAdam
    Commented Aug 4, 2023 at 15:39

1 Answer 1

0

Which number is both less than 0 and greater than 9? No number would ever produce "true".

To test a value between 0 and 9, the conditional is:

if num >= 0 && num <= 9

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .