Log in from a computer to take this course

You'll need to log in from a computer to start Learn Ruby. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
Learn

Great work! We’ll give you a bit of a break from the numbers game.

m = 0 loop do m += 1 print m break if m == 10 end

In the example above, we print out 12345678910 since we loop 10 times.

Instructions

1.

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

Make sure to type the string exactly as shown!

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?