Magic Squares

You have probably seen magic squares before. Magic squares are squares with in every direction the sum of the numbers is the same. This post is going to talk about an algorithm to make them. Pick a pattern for your square ex. 1, 3, 5, 7, 9 and so on, and then choose how big you want your square to be. The square can only be odd numbers (3x3, 5x5, 7x7). Then pull out your square with no number