Write a function average()
that receives 3 arrays as parameters.
The function computes the individual averages of the first two arrays (one average for each row of the arrays).
The averages are stored in the third array.
Compute and display the average of arrays grades1
and grades2
:
grade[0] = 10.10 grade[1] = 11.25 grade[2] = 14.25 grade[3] = 9.90 grade[4] = 11.60 grade[5] = 11.05