-2

Syntax error near unexpected token 'if'

   for x in 1..100 
      if x % 3 == 0
        puts "Fizz"
      elsif (x % 5) == 0
        puts "Buzz"
      else
        puts x
      end
   end
goofiw
  • 19
  • 3

1 Answers1

1

Thank you for the help. I was running the program incorrectly in the terminal. (. / vs 'ruby')

goofiw
  • 607
  • 5
  • 16