Four Number Game by Hendrik

m=math.abs
w=' 'n="*n"while""do a,b,c,d=io.read(n,n,n,n)while(c>0)or(d>0)do print(a..w..b..w..c..w..d)a,b,c,d=m(a-b),m(b-c),m(d-c),m(a-d)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