class Test def self.main arr = [1, 2, 3, 4, 5] arr.each do |a| puts a.to_i * a.to_i end end end