public static double sum(double[] values) {double sum = 0;for (double value : values) {sum += value;}return sum;}

public static double sum ( double [ ] values ) { double sum = 0 ; for ( double value : values ) { sum += value ; } return sum ; }
public static double Sum(double[] values){double sum = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sum += values[i];}return sum;}
