Skip to content

Instantly share code, notes, and snippets.

@foxweb
Created April 29, 2015 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxweb/e738f5e60745d5625790 to your computer and use it in GitHub Desktop.
Save foxweb/e738f5e60745d5625790 to your computer and use it in GitHub Desktop.
a = [1, 3, 5, 7, 9, 11, 13, 15]; a.each{|x| puts "x = #{x}"; a.each{|y| puts "y = #{y}"; a.each{|z| puts "#{x} + #{y} + #{z} = #{x+y+z}" } } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment