Learn Ruby
Number
11.3
Lesson

even? and odd? methods to check if the number is even or odd

Ruby provides .even? method to check if a number is even.

Ruby also provides .odd? method to check if a number is odd.