Please help


#1

Hello,

I am completly stucked with this one:
Write a for loop that puts the numbers 1 to 20, including 20, using either .. or .... Check Hint if you need a syntax refresher.

Could someone help me?

Thanks


#2

@romaintoulemonde take a look at this image to know the for loop syntax

take a look at this tutorial on for loops
Click here to tutorial


#3

Thand you.
As I have been doing the previous exercises a couple of days ago I am still stucked.
Could you help me forward?


#4

for variable in range # {1...20}
puts variable
end


#5

I've got it!
Thank you very much for your help