general form of the for loop : for « Statement « Ruby






general form of the for loop



for variable [, variable...] in collection [do | :]
  code
end

 








Related examples in the same category

1.Using the for Loop
2.For each item in
3.Nested for loop