Statement Ruby

fruits = ["peaches", "pumpkins", "apples", "oranges"]
0.upto(fruits.length - 1) do |loop_index|
  print fruits[loop_index] + " "
end