-1

I am not understanding as to what is expected when it says " rejects a height of -1 expected program to reject input, but it did not"

what is "reject input"?

please help

0

what is "reject input"?

Let's have a look at the specifications of this exercise:

Specification:

  • ...

  • ...

  • If the user fails to provide a non-negative integer no greater than 23, you should re-prompt for the same again.

  • ...

  • ...

In other words: If the user inputs a negative number, your program has to reject it and ask for another number.


And to quote Cliff B:

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

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