Rosettacode tasks in Perl 6
Search...
Ctrl + K
Programming tasks
S
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
1 year ago