Sum and product of an array: Difference between revisions
Added 11l
Drkameleon (talk | contribs) No edit summary |
Alextretyak (talk | contribs) (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}}==
|