The < operator returns true if the left side is smaller. if (x < 10) checks if x is less than 10. The > operator checks if the left side is larger. These operators work on any numeric type.
if (3.5 > 2) is true because 3.5 exceeds 2. Mixing int and double compares after conversion. You cannot chain comparisons syntactically. Writing if (1 < x < 10) does not work as expected.
Use if (x > 1 && x < 10) instead.