Jump to content

Magic squares/Perl: Difference between revisions

Further attempt to avoid task miscount
m (Try to fix bogus multiple reporting of task entries)
(Further attempt to avoid task miscount)
Line 1:
{{collection|Magic_squares_of_odd_order}}
Rather than having multiple examples for different orders of magic square, this program generates a magic square for ''any'' valid n x n grid.
 
Line 8 ⟶ 7:
</ul>
 
 
=={{header|Perl}}==
<span style='font-family: "Linux Libertine",Georgia,Times,serif;font-size:150%;'>[[Perl]]</span><hr>
{{trans|Perl 6}}
<lang perl>use strict;
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.