Page 1 of 1

Using c++; Write and test the following function that returns the average of the first n elements of array a[] of size K

Posted: Thu May 05, 2022 12:56 pm
by answerhappygod
Using c++;
Write and test the following function that returns the average
of the first n elements of array a[] of size K (where n ≤ K):
float ave(int a[], int n, int K);