Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for Magic Square #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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