Help


#1

The task says I should print "Ruby!" 30 times using a for loop, which I do:

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

but apparantly the error says:

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

Which I'm doing!

Task instructions:

Use the loop iterator to print out the string "Ruby!" 30 times.

Make sure to type the string exactly as shown!

#2

Nvm guys! Solved!!!!!


#3

How did you solved it?