fizzbuzz.rb
def fizzbuzz(int)
  if int % 3 == 0 && int % 5 == 0# if the number int is divisible by 3
    "FizzBuzz" # Go fizz
elsif int % 5 == 0
  "Buzz"
elsif int % 3 == 0
  "Fizz"
else int = nil
  end
end
# Don't forget! This file needs to be 'required' in its spec file
# See README.md for instructions on how to do this
Don't forget. This file needs to be 'required' in its spec file
See README.md for instructions on how to do this
Don ' t forget . This file needs to be ' required ' in its spec file See README . md for instructions on how to do this
def fizzbuzz(int)
  if int % 3 == 0 && int % 5 == 0
    "FizzBuzz" 
elsif int % 5 == 0
  "Buzz"
elsif int % 3 == 0
  "Fizz"
else int = nil
  end
end
def fizzbuzz ( int ) if int % 3 == 0 && int % 5 == 0 "FizzBuzz" elsif int % 5 == 0 "Buzz" elsif int % 3 == 0 "Fizz" else int = nil end end
Don't forget!
Don ' t forget!
# if the number int is divisible by 3 # Go fizz
int