12 Replies Latest reply on Mar 31, 2008 12:18 AM by 807591

    Help with 2D arrays

      I am required to make a magic squares program using a 2D array. How would I iterate it to separately add the row, column, and diagonals? I have four separate methods for doing each
      public int sumRow(int row)
      public int sumCol(int col)
      public int sumMainDiag()
      public int sumOtherDiag()
      Edited by: sammusashi on Mar 30, 2008 3:59 PM