#include "summation.h" double sum(double array[], int size) { int count = 0; double sum = 0; while(count < size) { sum = sum + array[count]; count ++; } return sum; }