Search:

Type: Posts; User: Guillaume_96

Search: Search took 0.07 seconds.

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

    Nevermind man... I just figured out the problem. I changed the initial values of the booleans:



    boolean magic = false;
    boolean rows = false;
    boolean columns = true;...
  2. Re: [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    No, because the array I tested the code on is a magic square. I initialized the booleans = false, and it prints it's not a magic square though. If I initialize them = true, then it prints it's magic...
  3. Re: [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    I had to initialize the boolean variables. That's why I set them to true. Now I set them all to false and it prints it's not a magic square...
  4. Re: [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    I just fixed the post! :)
  5. [HELP] I'm creating a code to check whether 2D array is Magic Square or not

    Hi everyone.

    I'm creating a method to check if a array is Magic Square or not.

    * Magic Square is a 2D array in which the sum of all rows, columns and diagonals are equal, for example:

    4|9|2...
Results 1 to 5 of 5