Stuck on exercise 5 of iterators and blocks


#1



https://www.codecademy.com/courses/ruby-beginner-en-XYcN1/0/3?curriculum_id=5059f8619189a5000201fbcb


it keeps going into an infinite loop and i dont know how to fix


Replace this line with your code.


#2

Please show us your code. What are you writing in line 5?