Loops & Iterators

Looping with 'Until'

Good work!

i = 3 while i > 0 do print i i -= 1 end j = 3 until j == 0 do print j j -= 1 end

In the example above, we wrote the same loop using while and using until.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.