Question: 1- Write a whole C program that contains the function mean which calculates the mean of an array with n numbers . Its prototype is:
double mean(double a[ ] , int n) ;
The mathematical formula for the mean is:
Also, in main, initialize each of the element of the array withdifferent numbers where n = 10. Then, call the mean functionand print the mean.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
