Magic squares of odd order: Difference between revisions

Content added Content deleted
(Add CLU)
Line 1,801: Line 1,801:


=={{header|Frink}}==
=={{header|Frink}}==
This program takes an order from command-line or requests an odd order from the user. It uses an algorithm from Dr. Crypton's column in Science Digest in the 1980s which the developer of Frink remembered and used to use by hand to create giant magic squares until his English teacher told him "don't do that in class."
<lang frink>order = length[ARGS] > 0 ? eval[ARGS@0] : undef
<lang frink>order = length[ARGS] > 0 ? eval[ARGS@0] : undef
until isInteger[order] and order mod 2 == 1
until isInteger[order] and order mod 2 == 1