Answer:
array_2d = [[7, 20],[13, 4],[25, 679]]
total = 0
for row in array_2d:
total += sum(row)
print(total)
Step-by-step explanation:
* The code is in Python.
Since sum() is a built-in function in Python, I used total instead.
- Create a for loop that iterates through the 2d array, visits each row
- Add the values of the element in each row - using sum() function - to the total variable
- When the loop is done, print the total