Hello! Please help with the task:
Given an integer rectangular matrix. Define:
- The product of elements located above the main and secondary diagonal.
- The number of the first of the lines that do not contain any positive elements.
I know that the 1st is in (i < j) && (i + j < n + 1)
But I don’t know how to write all this correctly and how to show the matrix in the form.
There is also such code for creating a matrix:
int[,] a = new int[8, 8]; Random randomizer = new Random(); for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { a[i, j] = randomizer.Next(-9, 9); } }