Mega Code Archive
Categories
/
Ruby
/
Statement
For each element in a range
for element in (1..3) puts element end # 1 # 2 # 3