[0,1,3,4,7,9].combination(2){|x| puts x.join(" ") }
Standard input is empty
0 1 0 3 0 4 0 7 0 9 1 3 1 4 1 7 1 9 3 4 3 7 3 9 4 7 4 9 7 9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!