Four Number Game by hallvabo

while 1:
 e=a,b,c,d=map(int,raw_input().split())
 while e:print a,b,c,d;e=a+d;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