Que ➤ Write a c program for n*n magic square where n is odd number.
What is a Magic Square?
A magic square is an arrangement of the numbers from 1 to n^2 (n-squared) in an nxn matrix, with each number occurring exactly once, and such that the sum of the entries of any row, any column, or any main diagonal is the same. It is not hard to show that this sum must be n(n^2+1)/2.
Solution :-https://drive.google.com/file/d/0B7snCzdq8oJDUEs5QzBzM3ZPTlU/view?usp=drivesdk
FOLLOW ME ON :-
INSTAGRAM :- https://www.instagram.com/akshay_methaniya_2809/

Comments
Post a Comment