Description: Given a positive odd number n, the output magic squares of order n. Namely: to fill in a square so that each row of matrix elements and each element and out, and the diagonal elements are equal. Odd-order magic can be arranged as follows: The one in the middle of the first line, followed by the natural number in the top right of the previous number (at the border around the handle) encountered a multiple of n, it will be a natural number row below the previous number.
To Search:
File list (Check if you may need any files):
奇阶数幻方.cpp
奇阶数幻方.exe