magic square

Write your question here.
how can we do a program that takes the dimensins of a magic square and fills it ?
,Thank you

 
Here is an article about the algorithm. This should help:

http://en.wikipedia.org/wiki/Magic_square
Topic archived. No new replies allowed.