Looping with "while"


#1

The exercise asks us to print from 1 to 50 (inclusive) using while. I really think I'm doing the right thing with the code bellow, but the exercise keeps telling me I'm wrong. Could someone help me see where?

i=1
while (i <= 50) do
    puts i
    i += 1
end

#2

I'm sorry, I didn't see that the exercise specifically tells me to use "print" instead of "puts". After changing this I could complete the exercise.