I have the code below for combinations in C:
double factorial(double x) { double i; double result=1; if (x >= 0) { for(i=x;i>1;i--) { result = r