The way to test for a range of numbers would be to use the > and the < operators. The numbers between 6 and 10 are > 6 and < 10.
The operators take two operands. If you put them in ()s it will help...