Magic constant: Difference between revisions

m
(→‎{{header|AWK}}: Added Algol 68)
Line 43:
... with the inverse magic constant routine as in the Julia/Wren samples.
{{works with|ALGOL 68G|Any - tested with release 2.8.3.win32}}
Uses ALGOL 68G's LONG LOMGLONG INT whose default precision is large enough to cope with 10^20.
<lang algol68>BEGIN # find some magic constants - the row, column and diagonal sums of a magin square #
# translation of the Free Basic sample with the Julia inverse function #
3,028

edits