Katriel Paige9,219 Points
Until loop seems correct, but?
Not sure what the challenge is looking for - my code seems correct, assuming that an until loop doesn't need an explicit exit/break?
i = 0 until i > 5 do i += i end
Two small issues:
- You don't need the
dokeyword. You should get rid of the
- You are incrementing
iby itself, and since
istarts at zero, it is constantly adding zero to itself which will make
istuck at zero. Try incrementing
If you fix these, you should end up with this:
i = 0 until i > 5 i += 1 end
I hope you understand. :)
Good luck! ~alex