Lesson: 14


#1

Hi, I've tried several different lines of code, but I still can't get the right answer for this challenge - Here's the basic code that I keep starting with - Thank you:


#2

You're printing " 2 1 ". It's expecting you to print every number between 1 and 50, to include 1 and 50. However, you're only printing out 1 and 2. Change your numbers around so that your "While-Loop" prints out every number between 1 and 50, to include 1 and 50.


#3

I think I get what you mean - I'll try it...


#4

I've tried different numbers in different places - I've also tried changing the operators around - Nothing's working, unfortunately...


#5

i = 1
while i < 51 do
    print i
    i += 1
end

#6

it wants you to print i, all the numbers between 1 and 50 to include 1 and 50. So have i print every number, "123456789101112131415" and so on.


#7

Okay, that worked - Thank you...