06-18-2013, 15:47

Hi

More random garbage I have just found around my files, I have no idea why I made this things long time ago. I´ll probably download MW2 soon

http://en.wikipedia.org/wiki/Binomial_coefficient

Thanks for reading

More random garbage I have just found around my files, I have no idea why I made this things long time ago. I´ll probably download MW2 soon

Code:

`nCr( n, r )`

{

return ( Factorial( n ) / ( Factorial( r ) * Factorial( n - r ) ) );

}

Factorial( number )

{

fact = 1;

for( i = 1 ; i <= number ; i ++ )

fact *= i;

return fact;

}

http://en.wikipedia.org/wiki/Binomial_coefficient

Thanks for reading