Four Number Game by pooq(Hendrik)

s=" "n="*n"z=math.abs;while""do a,b,c,d=io.read(n,n,n,n)while(a+d>0)do print(a..s..b..s..c..s..d)a,b,c,d=z(a-b),z(b-c),z(c-d),z(d-a)end print"0 0 0 0\n"end

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

download

return to the top page