Output1:
enter order of square matrix(must be an odd): 5
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
It is a magic square
Output2:
enter order of square matrix(must be an odd): 4
Must enter odd number!!
enter order of square matrix(must be an odd): 3
8 1 6
3 5 7
4 9 2
It is a magic square