This code determines if there is a magic square present in a randomized NxM matrix A. The user inputs in the size of the matrix and the code generates the random numbers and will continue to do so until it finds a combination where the largest magic square exists for the given size of the array. When running the code, it will prompt you to input in the number of rows and columns you want. After this, let the code do all the rest :)
-
Notifications
You must be signed in to change notification settings - Fork 1
This code determines if there is a magic square present in a randomized NxM matrix A. The user inputs in the size of the matrix and the code generates the random numbers and will continue to do so until it finds a combination where the largest magic square exists for the given size of the array.
preetshah123/magicSquare
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This code determines if there is a magic square present in a randomized NxM matrix A. The user inputs in the size of the matrix and the code generates the random numbers and will continue to do so until it finds a combination where the largest magic square exists for the given size of the array.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published