Sum and product of an array: Difference between revisions

Content added Content deleted
No edit summary
(Added 11l)
Line 5: Line 5:
Compute the sum and product of an array of integers.
Compute the sum and product of an array of integers.
<br><br>
<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}}==
=={{header|360 Assembly}}==