I'm having trouble understanding how to write a function call. This is what I have so far:
#include <ionstream>
using namespace std ;
int binomial(int n, int k) ; // function prototype
int main ()
{
int n, k ; // parameters for the binomial number
int result ;
cout << endl ;
// read in n & k
cout << "Enter n (positive integer) : " ;
cin >> k ;
cout << "Enter k (positive integer) : " ;
cin >> k ;
result =
cout << "Binomial number " << n << "C" << k
<< " = " << result << endl ;
return (0) ;
}
The function call is supposed to be written following "result =" but I'm not sure how to do this....Any help would be appreciated. Many thanks in advance!!