def fizz_buzz
n = 0
while n < 100
n += 1
if n % 3 == 0 && n % 5 == 0
puts 'FizzBuzz'
elsif n % 3 == 0
puts 'Fizz'
elsif n % 5 == 0
puts 'Buzz'
else
puts n
end
end
end
puts ((1..100).map do |i|
str = ''
str << 'Fizz' if i % 3 == 0
str << 'Buzz' if i % 5 == 0
str.empty? ? i : str
end)