0
How to calculate 2D arrays and find the average.
2 Answers
+ 2
Zlytherin great answer for 1D arrays. Mesut Awahab you will need two for-loops to loop through a 2D array. The inner loop will be for looping through the elements of the current array, and the outer loop will be for looping through the arrays, selecting each array to be looped through.
0
Loop through the outer array, store the sum of each inner array inside an array