Our FREE site is mostly funded by the Amazon ads ⇓below⇓.
Support us by clicking ⇑above⇑ next time you plan to buy a product on Amazon.
code for computing nth catalan number
long int factorial(int x) //long int for more than 10 factorial
long int fac; //fac stores x factorial
for(i=1;i<x;i++) //loop to calculate x factorial
return fac; //returning x factorial
long int f1,f2,f3; //long int for more than 10 factorial
float C; //C is catalan number for n;
C=f1/(f2*f3); //formula for catalan number for n