Why does my two-dimensional array print out incorrect values?

Printable View