Infinite loops? What's wrong?


#1

counter = 0
while counter < 5
puts counter
counter = counter + 1
end


#2

I don't see anything wrong with that code. Which exercise is it that you are working on? What is the error message that you are seeing?