Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.40K
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for imhim45

Hello..... Where I am wrong in this program. I am getting declaration syntax error. #include<iostream.h> #include<conio.h> int factorial(int) int main() {clrscr(); int n,r,nr,fn,fr,fnr; int ncr; cout<<"/n Enter n and r = "; cin>>n>>r; fn=factorial(n); fr=factorial(r); nr=n-r; fnr=factorial(nr); ncr=fn/(fr*fnr); cout<<"/n nCr ="<<n<<" C "<<r<<" = "<<ncr<<endl; getch(); return 0; } Thanx

Member Avatar for Deathstr0k3
0
3K