You are viewing a single comment's thread. Return to all comments →
the decription is a bit confusing but the code is fairly simple
def odd_or_even(number) if number.even? return true else return false end end
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby Tutorial - Object Methods
You are viewing a single comment's thread. Return to all comments →
the decription is a bit confusing but the code is fairly simple
def odd_or_even(number) if number.even? return true else return false end end