2020
Hackerrank Ruby Tutorial - Object Methods Solution
Each object in Ruby may have methods associated with it. To demonstrate this, we want you to print whether a number is even or odd. A number has an even? method associated with it, which returns true or false based on…