Data Structures, Algorithms, & Applications in C++
Chapter 2, Exercise 21
The second for loop is entered
numberOfRows * numberOfColumns times.
Each
time, one
addition is performed. The total number of adds is therefore,
numberOfRows * numberOfColumns.