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