I know this is a simple math problem but for some reason im drawing a blank.
If I have two ints which are boundaries for a range:
int q = 100;
int w = 230;
and then another in that is a number that I want to see if it is inside of the range:
int e = ?;
How can I find if e
is in the bounds of q
and w
?