Task

Compute the sum and product of an array of integers.




1 2 3 4 5 {input "array"}
5         {length of input}
0s:       {sum}
1p:       {product}
 
[$0=~][1-\$s;+s:p;*p:]#%
 
"Sum: "s;."
Product: "p;.