fork download
  1. p = 2
  2. while(p>0):
  3. for i in range(10):
  4. print i+1 , p
  5. p-=1
Success #stdin #stdout 0.08s 8832KB
stdin
stdout
1 2
2 1
3 0
4 -1
5 -2
6 -3
7 -4
8 -5
9 -6
10 -7