vendredi 11 septembre 2015

How do I `puts` an element at a certain position of an array?

How do I puts an element at a certain position of an array?

count = array.count
for n in 1..count.step(3) do
  puts array[n]
end

Aucun commentaire:

Enregistrer un commentaire