Magic squares of odd order: Difference between revisions

Content added Content deleted
(→‎{{header|Picat}}: Added subsection, added {{out}})
Line 3,345: Line 3,345:
nl.</lang>
nl.</lang>


{{out}}
Output:
<pre>N=3
<pre>N=3
6 7 2
6 7 2
Line 3,387: Line 3,387:
ok</pre>
ok</pre>


Testing a larger instance:
===Testing a larger instance===
<lang Picat>
<lang Picat>go2 =>
go2 =>
N = 313,
N = 313,
M = magic_square(N),
M = magic_square(N),
Line 3,395: Line 3,394:
nl.</lang>
nl.</lang>


{{out}}
Output:
<pre>sum = 15332305
<pre>sum = 15332305
ok</pre>
ok</pre>



=={{header|PicoLisp}}==
=={{header|PicoLisp}}==