Hoping for something more elegant than
if (i>0 && i<100)
That's how you check is an integer is in a range. Greater than the lower bound, less than the upper bound. Trying to be clever with subtraction will likely not do what you want.