17. Loop The Loop With Loop


The console is printing the required string 30 times, yet im still getting an error. I can't tell whats wrong.

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


put a ! sign at the end of Ruby string. e.g. "Ruby!'


as @xxxfahimxxx mentioned above. the "Ruby!" is the proper way to put it.

The programmer who designed the lesson is expecting to see "Ruby!" in the console. so if you put anything else e.g. "ruby!", "Rubey!", "TOENAILS!" it's not going to work. It will only pass if the console sees that "Ruby!"
(syntax kills!)


well that was embarassing