Four Number Game by pooq

s=" "r=io.read;z=math.abs;while""do a=r"*n"b=r"*n"c=r"*n"d=r"*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