17. Loop The Loop With Loop


#1

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
end


#2

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


#3

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!)


#4

well that was embarassing