There's no case to handle the odd numbers. Also, because of the funny implementation of nextInt(), it's not consuming the next line character when you input the max value.

Also, there is a much...