Hi
I am trying to create a basic while loop that checks to see if a number entered is higher or lower that the desired range.
I have tried using to WHILE statements
INPUT "Enter a number from 1 - 10 ", number
WHILE number < 1
INPUT "Enter a number from 1 - 10 ", nomber
ENDWHILE
WHILE number > 10
INPUT "Enter a number from 1 - 10 ", nomber
ENDWHILE
PRINT number
although this works initially if I enter 0 then 99 and 0 again it ends the loop and prints 0 a number outside the desired range. Is there a way to accomplish this using just one WHILE loop or an easier way of doing it?
Thanks