Sum and product of an array: Difference between revisions

m
No edit summary
Line 762:
Product of the elements of the array: 3840</pre>
=={{header|Elena}}==
ELENA 4.x1:
<lang elena>import system'routines;
import extensions;
Line 768:
public program()
{
var list := new int[]{::(1, 2, 3, 4, 5 });
var sum := list.summarize(new Integer());
Anonymous user