Question: undefined Write awhole C program thatcontainsthefunction mean whichcalculatesthemean of an arraywith n numbers. Itsprototype is: doublemean(double a[ ] , int n) ; Themathematicalformulaforthemean is: 1
undefined
- Writeawhole C program thatcontainsthefunctionmeanwhichcalculatesthemean of an arraywithnnumbers. Itsprototype is:
doublemean(double a[ ] , int n) ;
Themathematicalformulaforthemean is: 1ni=0n-1a[i]
Also, in main, initializeeach of the element of thearraywithdifferentnumberswheren = 10. Then, callthemeanfunctionandprintthemean.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
