Anonymous user
Sum and product of an array: Difference between revisions
added APL
(added APL) |
|||
Line 61:
Output:
Sum: 55, Product:3628800;
=={{header|APL}}==
{{works with|APL2}}
sum ← +/
prod ← ×/
list ← 1 2 3 4 5
sum list
15
prod list
120
=={{header|AppleScript}}==
|