Skip to content

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.

Notifications You must be signed in to change notification settings

preetshah123/magicSquare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

magicSquare

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 :)

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

No packages published

Languages