const int N = 2000; int M[N][N]; // gets matrix values from user void get_matrix (int M[][N],int m, int n) { int i; int j; i=0; while (i