Even or Odd using .even? method

I am just dabbling with the different methods in Ruby. One of the
unique I found was .even? method.

Here, a number range 1 through 20 is given. Afterwards, an if statement
is used that returns even when number is even and odd when the number
is odd.