n = gets.to_i 1.upto(n) do |i| if (i/3).integer? && (i/5).integer? puts "FizzBuzz" elsif (i/3).integar? puts "Fizz" elsif (i/5).integer? puts "Buzz" else puts i end end