Anonymous user
Evaluate binomial coefficients: Difference between revisions
→{{header|C++}}
(→{{header|Erlang}}: infinite loop unless you add this clause) |
|||
Line 395:
}
double
{
if (abs(n - k) < 1e-7 || k < 1e-7) return 1.0;
if(
}
▲ }</lang>
Implementation:
<lang cpp>int main()
{
cout<<"The Binomial Coefficient of 5, and 3, is equal to: "<<
cin.get();
}</lang>
|