fork download
  1. a=[1, 2, 3]
  2. b=[4, 5, 6]
  3. a.each do |x|
  4. b.each do |y|
  5. puts "#{x} + #{y} = #{x + y}"
  6. end
  7. end
Success #stdin #stdout 0.01s 7408KB
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