Could someone please give me a brief explanation on for loops please
Thanks
Dale
Could someone please give me a brief explanation on for loops please
Thanks
Dale
Google for ruby loops will give you loads of data.
Colin
for i in 1..8 do puts i end
The above loop will result in the following output: 1 2 3 4 5 6 7 8
I don't think there's anything else to explain here.