Find the mean of maximum and minimum element of an array.
Answers
Answered by
1
Answer:
Declare two variables max and min to store maximum and minimum. Assume first array element as maximum and minimum both, say max = arr[0] and min = arr[0] . Iterate through array to find maximum and minimum element in array. Run loop from first to last array element i.e. 0 to size - 1
HOPE THIS HELPS YOU PLS MARK ME
Explanation:
Similar questions