Sum and product of an array: Difference between revisions

Added 11l
No edit summary
(Added 11l)
Line 5:
Compute the sum and product of an array of integers.
<br><br>
 
=={{header|11l}}==
<lang 11l>V arr = [1, 2, 3, 4]
print(sum(arr))
print(product(arr))</lang>
 
{{out}}
<pre>
10
24
</pre>
 
=={{header|360 Assembly}}==
1,481

edits