fork download
  1. a=[1, 2, 3]
  2. b=[4, 5, 6]
  3. a.product(b){ |(x,y)| puts "#{x}+#{y}=#{x+y}" }
Success #stdin #stdout 0.01s 7452KB
stdin
Standard input is empty
stdout
1+4=5
1+5=6
1+6=7
2+4=6
2+5=7
2+6=8
3+4=7
3+5=8
3+6=9