Firstly, I would like to inform you that I am new here on the site, and if by chance my question was left uninformed or poorly organized please speak.
I was trying to solve this question:
Iwasabletodevelopthiscode:
importjava.util.Scanner;classMatriz1{publicstaticvoidmain(String[]args){Scannerler=newScanner(System.in);intN=ler.nextInt();inti,j,m[][]=newint[N][N];//Lermatrizfor(i=0;i<N;i++){//informalinhaSystem.out.printf("Informe os elementos %da. linha:\n", (i+1));
for (j=0; j<N; j++) {
//informa qual numero deve se colocar
System.out.printf("m[%d][%d] = ", i, j);
m[i][j] = ler.nextInt();
}
// salta linha para n ficar confuso
System.out.printf("\n");
}
But I can not figure out how to get the diagonal differences from the array.