lab2 ex6

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

Lab2

Not Claimed
Status
Finished
Problems
6
Open Since
2023-05-23 18:00
DDL
2023-05-25 22:00
Extension
0.0 hour(s)