c++ – Magic square code – Stack Overflow

This calculates a magic square. The only thing I cannot get is my numbers are suppose to switch each time it loops but it shows the same number each time it loops which basically make it an infinite loop…what I’m asking for is help on getting the numbers to change each time it loops.

Read More