Mega Code Archive

 
Categories / Ruby / Range
 

Drop the do It isnt required, but you have to keep end

for i in 1..5   print i, " " end # => 1 2 3 4 5