#include <iostream>
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 >> n ;
cout << "Enter k (positive integer) : " ;
cin >> k ;
result = Need function call (n, k) ;
cout << "Binomial number " << n << "C" << k
<< " = " << result << endl ;
return (0) ;
}
Can someone point me in the right direction? Am I not declaring the function properly?
Thanks in advance.
MOD EDIT: Added code tags. When posting code...USE CODE TAGS!!!
This post has been edited by JackOfAllTrades: 14 August 2011 - 09:39 AM

New Topic/Question
Reply



MultiQuote





|