0

I need your help😢

then I wrote an explanation to the translator ... boys help the task I was given a very strange: create a function for finding the minimum element among the positive (Mx) of elements in the column of the matrix and its indexes. Using this feature, the matrix E (5,7) (Mx) which has the maximum product of the index and the matrix T (7,6) the sum of (Mx), which has the minimum sum of the indices.

8th Feb 2017, 1:35 PM
NO NAME
NO NAME - avatar
2 Answers
+ 2
If I understand it correctly...? int E(int matrix[!!!sizeofmatrix1!!!][!!!sizeofmatrix2!!!]) { unsigned int min=0; --min; for(int i=0;i<sizeofmatrix1;++i) for(int j=0;j<sizeofmatrix2;++j) if(matrix[i][j]>=0 && matrix[i][j]<min) min = matrix[i][j]; return min; }
9th Feb 2017, 5:12 PM
SUPER_S
SUPER_S - avatar
+ 1
If not, then write the task in your own language. The second translation gives more questions than answers...
9th Feb 2017, 5:17 PM
SUPER_S
SUPER_S - avatar