MAGIC SQUARE (16K ZX81)
by Zui Schreiber, Goneu, Israel
from Your Computer (February 1983), Page 127

This 16K ZX-81 program designs a magic square and prints it on the screen.
A magic square is a square of numbers in which the sum of any horizontal,
vertical or full diagonal line is equal. This program can design one only
for an odd width and can show it all on the screen only if its width is
less than 10. The program is saved by RUN 2 and RUN 5000 will allow you to
ask for a larger square and print it bit by bit. For a given size the
program will always give the same square, but will skip no number between
one and the last number and will show no number twice. If a square larger
than nine by nine is not demanded, lines 4999 to 6060 are not needed.
