Skip to content

Instantly share code, notes, and snippets.

@abloom
Created April 5, 2013 16:40
Show Gist options
  • Save abloom/5320728 to your computer and use it in GitHub Desktop.
Save abloom/5320728 to your computer and use it in GitHub Desktop.
def super_fizzbuzz(array)
fizzbuzzed = []
array.each do |num|
if num % 3 == 0 && num % 5 == 0 # return "FizzBuzz"
elseif num % 3 == 0 # return "Fizz"
elseif num % 5 == 0 # return "Buzz"
elseif num /
place
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment