#include<iostream>
double sum(int n,dounle[])
{
double array[100];
foe(int i=0;i<100;i++;)
double sum(int n,double a[])
double sum=0;
for(int i=0;i<n;i++;)
sum+=a[i];
return sum;
}