Good day. Help please solve the problem:
Given an integer rectangular matrix A of size nxm. Find the first row in the matrix, all elements of which are zero. Multiply all elements of the column with the same number by 2.
Tell me a method for solving this problem.
class Program { static void Main(string[] args) { int[,] array2D = new int[,] { { 1, 0, 4, 6, 2 }, // Создаем { 3, 4, 1, 7, 4 }, // Массив { 0, 0, 0, 0, 0 }, // размером { 7, 8, 2, 4, 1 } }; // nxm Console.WriteLine("Исходный массив:"); for (int i = 0; i < array2D.GetLength(0); i++ ) { for (int j = 0; j < array2D.GetLength(1); j++) { if (array2D[i, j] == 0) Console.Write(" " + array2D[i, j]); } Console.WriteLine(" "); } Console.ReadKey(); } } In this matrix in row number 3, all elements are equal to 0, it must be found, and column 3 multiplied by 2. How to do this?