p = 2while(p>0): for i in range(10): print i+1 , p p-=1
1 2 2 1 3 0 4 -1 5 -2 6 -3 7 -4 8 -5 9 -6 10 -7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!