Magic squares/Raku: Difference between revisions
m
→{{header|Perl 6}}: Add links to the various tasks
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Generalize the magic squares code) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: Add links to the various tasks) |
||
Line 2:
Invoke at the command line and pass in the desired size as a parameter.
{{works with|Rakudo|2016-02}}
See:▼
[[Magic_squares_of_odd_order#Perl_6|Magic squares of odd order#Perl 6]]▼
▲See:<ul>
▲<li>[[Magic_squares_of_odd_order#Perl_6|Magic squares of odd order#Perl 6]]</li>
<li>[[Magic_squares_of_singly_even_order#Perl_6|Magic squares of singly even order#Perl 6]]</li>
<li>[[Magic_squares_of_doubly_even_order#Perl_6|Magic squares of doubly even order#Perl 6]]</li>
</ul>
<lang perl6>sub MAIN (Int $n where {$n > 0}) {
|