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



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


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:


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