text: public static double Product(double[] values){double product = 0;if (values != null && values.Length > 0){product = 1;for (int i = 0, iSize = values.Length; i < iSize; i++){product *= values[i];}}return product;}