← Back to If Statements
Question 211
Inside The Range
Inside The Range
Read a number and report whether it lies between 10 and 20 inclusive: print In range when it does and Out of range otherwise. Input: one integer, no prompt. Output: one line. Join the two comparisons with and so both the lower and the upper limit are checked in one condition.
Expected Output:
In range= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
If StatementsOperators
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.