The same birthday by teebee

p=1;2.upto(100){printf"n=$it, p=%.8f\n",1-(p*=1-~-it/365)}

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

download

return to the top page