Looping with "while"


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?

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


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.