The same birthday by teebee

p=1 for n=1,99 do p=p-p*n/365 print(("n=%d, p=%.8f"):format(1+n,1-p))end

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

download

return to the top page