The same birthday by teebee

p=1.0;99.times{|n|puts"n=%d, p=%.8f"%[2+n,1-p+=p*~n/$$]}

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

download

return top