Iterating with .times


#1



So, i cant get past this stage, I looked at the other Q & A's, but nothing works. It seems to be the simplest one, but i cant get it to work.


The error says "Oops, try again. It looks like you didn't print out the string 'Ruby!' 30 times."
I don't know why it says that because it lokks like I have everything there, please help!


Replace this line with your code. 
30.times { puts"Ruby!" }


#2

If you re-check the spacing in your code, and make sure everything is correct there, then you should be able to find the issue.

If you still can't get it to work, then just reply and we'll figure it out so you can move on.


#3

Apologies. Spacing isn't the only issue. There are two methods of printing text out in Ruby. Make sure you're using the right one here. Hopefully that helps!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.