Given a given number of ranges:
a =
32225 52259
52260 70794
70795 91459
91460 95409
And one value x = 61450- is there a way to determine in which range x falls without , using a loop to test every possibility? The answer in this case will be 2, since 61450 falls into the second range.
source
share