x-ax+a-bx+b
x+a+bxx-a-b
x-bx+b-ax+a
Magic squares
  • Magic squares will have numbers giving same total row wise, column wise and diagonal wise.
  • The resulting square will be a magic square if same number is added to all cells or each cell is multiplied by same number.
  • Rows and colums can be interchanged.
  • So you can create many types of magic squares from one magic square

(1) Program/Script to create a magic square

Select Delimiter: Space Comma Hyphen Colon

Size:
Tested up to 999 square. For PCs, because of system capacity, up to 200 should be fine.
You can select a delimiter like comma to separate values.
Output will be displayed in new window named magic square


(2) Create your Magic Square 6 by 6



(3) Click to know more about Magic Squares