Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 305 Bytes

simple_multiplication.md

File metadata and controls

11 lines (9 loc) · 305 Bytes

Description

This kata is about multiplying a given number by eight if it is an even number and by nine otherwise.

My Solution

def simple_multiplication(number)
  number.even? ? number * 8 : number * 9
end