这个有用的智力工具是用来发现幻方的。
源程序在:
http://www.schulers.com/jpss/pascal/msm.htm输出:
Dimension (Grau):4
Cells (Celulas):16
Level 1 (Nivel 1):120
Sum (Total por linha):34
--------------------------------------
magic square found(achei quadrado magico):1
5 8 10 11
2 9 7 16
15 4 14 1
12 13 3 6