We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Forming a Magic Square
Forming a Magic Square
Sort by
recency
|
1203 Discussions
|
Please Login in order to post a comment
below is my solution, i tested it succes making all cols and rows sum = 15, but still not correct, any solution guys ?
I had to follow the tips people gave in the discussions about there only being 8 different 3x3 magic squares. For a start I did not even know the concept of a magic square and it took me a while to realize that the sums must equal 15. Anyhow, here is a solution in C, definitely not the most optimized but it's the best I could manage right now.
JavaScript