0
[DUPLICATE] Does anyone know how to do magic square in C?
3 Answers
+ 2
This isn't my code, but I've put it in the Code Playground (referencing the original author)
https://code.sololearn.com/cPz8xb2YaFTf/#c
+ 12
https://www.sololearn.com/Discuss/1214755/?ref=app
Please post your question once. Repeated duplicate questions are spammy.
+ 2
"The best known algorithm for generating magic squares of odd order is de La Loubere's method"
https://blogs.mathworks.com/cleve/2012/11/05/magic-squares-part-2-algorithms/
Try implementing that in C.