i don’t know where is the problem
Desired output is showing
desired output is not coming in case of “non-square” matrix eg-3*4
u cannot change the number of rows and column of the static array.
that why for this problem consider only N X N type matrix