# include<iostream.h>
int fact(int x);
int main ()
{
int n,r,a,b,c,d,e;
cout<<"find the value of nCr "<<endl;
cout<<"value for n "<<endl;
cin>>n;
cout<<"value for r "<<endl;
cin>>r;
a=n-r;
b=int fact(int n);
c=int fact(int r);
d=int fact(int b);
e=b/(c*d);
cout<<"value of factorial is "<<endl;
return 0;
}
int fact(int x)
{
int z =1;
for (int i=1;i<=x;i++)
z=z*i;
return z;
}
but now also always give error expression syntax in function main , inline 12,13,14
pls help me...