Объяснение:
using System;
namespace MyProgram {
class Programm {
static void Main(string[] args) {
int M = 5;
int N = 3;
int min = 0;
int max = 100;
int minOfRow = max;
int maxOfMin = min;
int[,] arr = new int[M, N];
Random r = new Random();
for (int i = 0; i < M; i++) {
minOfRow = max;
for (int j = 0; j < N; j++) {
arr[i, j] = r.Next(min, max);
Console.Write(arr[i, j] + " ");
if (arr[i, j] < minOfRow) {
minOfRow = arr[i, j];
}
}
if (minOfRow > maxOfMin) {
maxOfMin = minOfRow;
}
Console.WriteLine();
}
Console.WriteLine(Environment.NewLine + maxOfMin.ToString());
Console.ReadKey();
}
}
}
Чи не?