#include
#include
#include
double average(double data[], int count)
{
int j = 0;
double sum = 0.0;
for( j = 0 ; j ;
return sum/count;
}
int main()
{
double data[3];
data[0] = 1;
data[1] = 2;
data[2] = 3;
printf("\nThe average of thew values you entered is %10.2lf\n", average(data, 3));
free(data);
}