Rosettacode tasks in Perl 6
Search
Ctrl + K
Sum and product of an array
Copy
my
@ary = 1, 5, 10, 100;
say
'Sum: '
, [+] @ary;
say
'Product: '
, [*] @ary;
Previous
Suffixation of decimal numbers
Next
Sum and product puzzle
Last updated
4 months ago