public static void Main()
int bestSum = int.MaxValue;
for (int row = 0; row < matrix.GetLength(0) - 1; row++)
for (int col = 0; col < matrix.GetLength(1) - 1; col++)
int sum = matrix[row, col] + matrix[row, col + 1] +
matrix[row + 1, col] + matrix[row + 1, col + 1];
Console.WriteLine("The best platform is:");
Console.WriteLine (" {0} {1}",
matrix[bestRow, bestCol],
matrix[bestRow, bestCol + 1]);
Console.WriteLine(" {0} {1}",
matrix[bestRow + 1, bestCol],
matrix[bestRow + 1, bestCol + 1]);
Console.WriteLine("The minimal sum is: {0}", bestSum);