0

[DUPLICATE] Does anyone know how to do magic square in C?

14th Apr 2018, 10:57 AM
F A
F A - avatar
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
14th Apr 2018, 11:57 AM
Emma
+ 12
https://www.sololearn.com/Discuss/1214755/?ref=app Please post your question once. Repeated duplicate questions are spammy.
14th Apr 2018, 12:41 PM
Fox
Fox - avatar
+ 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.
14th Apr 2018, 11:40 AM
Emma