Magic squares/Lua: Difference between revisions

Content added Content deleted
m (Avoid counting non tasks as task entries)
(lang -> syntaxhighlight)
 
Line 1: Line 1:
<span style='font-family: "Linux Libertine",Georgia,Times,serif;font-size:150%;'>[[Lua]]</span><hr>
<span style='font-family: "Linux Libertine",Georgia,Times,serif;font-size:150%;'>[[Lua]]</span><hr>
<lang lua>
<syntaxhighlight lang="lua">
function makeArray( s )
function makeArray( s )
local q = {}
local q = {}
Line 112: Line 112:
display( buildDEMS( 8 ) )
display( buildDEMS( 8 ) )


</syntaxhighlight>
</lang>
{{out}}<pre>
{{out}}
<pre>
Odd Magic Square - 9 x 9
Odd Magic Square - 9 x 9
47 58 69 80 01 12 23 34 45
47 58 69 80 01 12 23 34 45