Good day) There is a matrix of 100x100, you need to sum each column of the matrix, divide the sum by the number of elements in the column, and add the numbers to a one-dimensional array. But I have something not very good, I can not figure it out (
public class Etalon { public static void etalonMatrix(int [][] convertToMatrix) { int [][] mas = convertToMatrix; int s = 0; for (int i = 0; i < convertToMatrix[0].length; i++){ for (int j = 0; j < convertToMatrix.length; j++){ s = s + mas [j][i]; System.out.println(s + " "); } System.out.println(" "); } } } This code even summarizes, but very strange, wrong)