Skip to content

Conversation

ntua-el21401
Copy link

Given a matrix, check whether it’s Magic Square or not. A Magic Square is a n x n matrix of the distinct elements from 1 to n^2 where the sum of any row, column, or diagonal is always equal to the same number.

Given a matrix, check whether it’s Magic Square or not. A Magic Square is a n x n matrix of the distinct elements from 1 to n^2 where the sum of any row, column, or diagonal is always equal to the same number.
@kostis
Copy link
Owner

kostis commented Feb 26, 2025

Thanks for your contribution.

Please add a sample input and result file (see the other Dana programs) and I will merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants