long n = 10;long factorial = 1;long i = 2;while (i <= n) { factorial *= i; i++;}
public static double Product(double n){double p = 1d;int k = 1;do{p *= k++;}while(k<=n);return p;}