Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Re: [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    That is not the fix that is needed. Try the code with other input values with invalid content in the columns or diagonals to see what happens.

    If the values of the booleans are never set false,...
  2. Re: [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    Ok, which variable(s) have the wrong values? Look at the contents of all the variables to see which one(s) are wrong.
    One way to see a variable's value is to print it out.

    Note: If none of the...
  3. Re: [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    Is it working correctly now?
  4. Re: [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    Ok, did you read my comments?
    Answer this question: Why are the values of all the boolean variables initially set to true?


    Where are any of those boolean variables ever set to false?
  5. Re: [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    What happens when the code is executed?
    Why are the initial values of the boolean variables all set to true?

    It seems like the code does a lot of useless work. If all the summed values must be...
Results 1 to 5 of 5