Another problem with ruby


#1



https://www.codecademy.com/en/courses/ruby-beginner-en-XYcN1/3/4?curriculum_id=5059f8619189a5000201fbcb#
I tried doing it myself for a while, then finally gave up and copy/pasted the 'Hint'. That didn't work either. Meaning: There is something fundamentally wrong with this exercise.
The error is: Oops, try again. It looks like you didn't print out the string 'Ruby!' 30 times.


counter = 0
loop do
  counter += 1
  print "Ruby"
  break if counter > 30
end


#2

the string you print doesn't contain an exclamation mark.


#4

It still won't work.

counter = 0
loop do
  counter += 1
  print "Ruby!"
  break if counter > 30
end

#5

With your code, you print "Ruby!" 31 times. Expected output is "Ruby!" 30 times.


#6

this will print ruby 29 times, not 30 times


#7

I've been trying too and no luck- I believe there's possibly a bug with this exercise.


#8

#9

As you can see in this topic, the bugs are often bugs in your code. Please go here and make a new topic