Outside range?

We would like to detect if a number is outside a given range.
Given the endpoints of the range: l and r, determine if x is outside the range [l; r] (inclusive). Print Outside if x is outside the given range, and Inside if it is inside.
Input
Output
4 10 5
Inside
4 10 20
Outside
 
To check your solution you need to sign in
Sign in to continue