lab2 ex6
You cannot submit for this problem because the homework's deadline is due.
Ex6. Magic square of odd order (20 marks)
Read a a positive odd integer \(k\) from user input, and output a \(k\) order magic square following the rule introduced in the page
Magic Square | ODD Order - GeeksforGeeks. \(k\) is guaranteed to be an odd positive integer.
Sample Test Cases
Input:
3
Output:
2 7 6
9 5 1
4 3 8
Format
You should submit a compressed file containing a Matlab source file ex6.m