APL Program

Program Description

The program generates odd or even order consecutively concentric magic squares.

The odd order squares are the same as described in Odd.

The even order squares are not the same as described in Even.
The center 4x4 square is different. For bigger squares, the main diagonals match, but other numbers are arranged differently.

The program is written in APL\11 using the ASCII character set. Characters used that differ from the APL alphabet are:

	a-z	letter	
	I	iota
	R	rho
	U	drop
	V	or
	X	multiply
	Y	take
	#	not equal to
	`	negative sign
	{	assign
	}	goto

Program Listing


APL (A Programming Language) http://en.wikipedia.org/wiki/APL_(programming_language).