Why does my iteration to fill a matrix, fill another non-related matrix as well?

Printable View