for i in range(729): a,b,c = 1+i%9,1+i//9%9,1+i//81 if 9*a*c+b*c-10*a*b == 0: print(a,b,c)
Standard input is empty
1 1 1 2 2 2 3 3 3 4 4 4 1 6 4 5 5 5 2 6 5 1 9 5 6 6 6 7 7 7 8 8 8 4 9 8 9 9 9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!