对于迭代器

这从 4 到 13(包括)迭代。

for i in 4..13
    puts "this is #{i}.th number"
end

我们也可以使用 for 迭代数组

names = ['Siva', 'Charan', 'Naresh', 'Manish']

for name in names
    puts name
end