Magic square is the square array of positive integers that the sums of the numbers in each row, each column, and both main diagonals are the same.

We can give you a n x n magic square, the value n is expected to be in [3, 100].

Input an integer n in [3, 100]:


Explain Code
: explain the code you input to help you to understand it.

X