fruits = ['リンゴ','バナナ','パイナップル'] fruits.each{|elem| print elem,"\n" }