Top "Magic-square" questions

A "magic square" is an arrangement of numbers (usually integers) in a square grid, where the numbers in each row, and in each column, and the numbers in the forward and backward main diagonals, all add up to the same number.

Magic Square Program (C++)

For those unfamiliar with the classic magic square algorithm: A magic square is a two dimensional array (n x n) …

c++ magic-square
Creating a Magic Square in java

I have to write a program that takes in an odd number from the user and creates a magic square. …

java arrays while-loop magic-square
Magic Square program help (Java)

This is homework for my AP Computer Science class dealing with 2D Arrays. Basically what the program does is input …

java for-loop multidimensional-array magic-square
Magic square python

I'm coding a program that reads a line in a file and determines whether or not the line makes a …

python magic-square
NumPy equivalent of Matlab's magic()

In Ocatave / Matlab, I can use magic() to get a magic square, e.g., magic(4) 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1 Definition: A magic square is …

python numpy matrix magic-square
magic square program help C#

I need help debugging and finishing a program that would: read a file with same number of lines and same …

c# arrays type-2-dimension magic-square