title: Check whether this matrix is symmetric in relation to the main diagonal
body: <p>Given the number n, not exceeding 10, and a matrix of size n × n. 
  Check whether this matrix is symmetric in relation to the main diagonal. Output the word “YES”, if it is symmetric and the word “NO” otherwise. </p>
  
  <p>This is my code, it unfortunately does not work. Please, explain to me how to do it correctly :)</p>
  
  <pre><code>public class Main { public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);
  
      int n= scanner.nextInt();
      int[][] number = new int[n][n];
      boolean ismatch = false;
  
      for (int i = 0; i &lt; n; i++) {
        for (int j = 0; j &lt; n; j++) {
          number[i][j] = scanner.nextInt();
        }
      }
      int unevenchecker = (n% 2);
      if (unevenchecker != 0) {
        for (int k = 0; k &lt; number.length - 1; k++) {
  
          for (int l = 0; l &lt; number.length - 1; l++) {
            if (number[k][l] == number[l][k]) {
              ismatch = true;
            }
          }
        }
        if (ismatch) {
          System.out.print("YES");
        }
      } else {
        System.out.print("NO");
      }
    }
  }
  </code></pre>