Q:

With a matrix, when would:  your outer loop be over the rows  your outer loop be over the columns  it not matter which is the outer and which is the inner loop?

0

 With a matrix, when would:

 your outer loop be over the rows

 your outer loop be over the columns

 it not matter which is the outer and which is the inner loop?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The outer loop must be over the rows if you want to perform an action for every row; it must be over the columns if you want to perform an action for every column. It does not matter if you simply need to refer to every element in the matrix. 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now