So our teacher asked us to do 2x2 matrix. This is my code for its interface.
However, arrays mat1[0][1] and mat1[1][0] are always equal. Whenever user input a value on mat1[1][0], it also changes the value for mat1[0][1].
How is that possible? Did I do something wrong?
I actually tried doing functions for my arrays so that they can automatically just go one by one (if that's what you mean). Unfortunately, my tiny brain can't handle how it done hahaha.