using System; namespace Test { class Program { static void Main() { int[,] a = new int[7, 5]; int rows = a.GetLength(0); int columns = a.GetLength(1); Random random = new Random(); for(int i = 0; i < rows; i++) { for(int j = 0; j < columns; j++) { a[i, j] = random.Next(6); Console.Write(a[i, j] + " "); } Console.WriteLine(); } for(int j = 1; j < columns; j++) { if(a[rows - 1, 0] != a[rows - 1, j]) { Console.WriteLine("Не равны."); return; } } Console.WriteLine("Равны."); } } }