Help! 17.Loop the loop with loop


#1

not sure what is wrong with my code?

x = 0
loop do
x += 1
puts "Ruby!"
break if x == 31
end

any ideas?


#2

You are using "puts". It asked that you use "print"

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


#3

Oops, try again.
It looks like you didn't print out the string 'Ruby!' 30 times.


#4

I didnt notice the syntax "!" error in my code. To call for Ruby. Thanks

Reminds me of Java.