for (int row = 0; row < matrix.GetLength(0); row++) { for (int col = 0; col < matrix.GetLength(0); col++) { } } // in c#