Magic squares/Raku: Difference between revisions
Content added Content deleted
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: | Line 2: | ||
Invoke at the command line and pass in the desired size as a parameter. |
Invoke at the command line and pass in the desired size as a parameter. |
||
{{works with|Rakudo|2016-02}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<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}) { |
<lang perl6>sub MAIN (Int $n where {$n > 0}) { |