Four Number Game by recursive

while 1:
 s=a,b,c,d=map(int,raw_input().split())
 while s:print a,b,c,d;s=b+c;a,b,c,d=map(abs,[a-b,b-c,c-d,d-a])
 print

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top