#!/usr/bin/ruby # encoding: utf-8 szamok = Array.new(5) { |a| a = a * 2} puts "#{szamok}"