14. Looping with while, Ruby: Error: It looks like you didn't print


#1



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


I'm getting the following error: It looks like you didn't print out the 1 through 50 range inclusive. No matter what I do I can't get this to work. Help please!:slight_smile:


i = 1..50
while i > 1  do
  print i
  i += 1
end


#2

Don't set a range to i instead set a number.

now put the condition so that it will print out the numbers 1 through 50,inclusive.

you can see the example in the lesson :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.