The same birthday by ush

main(n){double q=1;for(;99/n;printf("n=%d, p=%.8f\n",++n,1-q))q-=q*n/365;}

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

download

return to the top page