I'm stuck


#1

i = i + 1
counter i < 5
puts i
# Add your code here!
counter
end


#2

Hei

This doesn't really make sense. You have 2 variables and none of them declared. I hope you meant chapter 2 where you have this text:

i = 0
while i < 5
puts i
# Add your code here!

end

and the solution would be:

i = 0
while i < 5
puts i
i = i + 1 # Add your code here!

end

I hope this helps otherwise please explain what you want to achieve.


#3

thanks :grinning::grinning::grinning: