Sum and product of an array: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Minor tidy)
Line 3,726: Line 3,726:
=={{header|Wren}}==
=={{header|Wren}}==
{{libheader|Wren-math}}
{{libheader|Wren-math}}
<syntaxhighlight lang="ecmascript">import "/math" for Nums
<syntaxhighlight lang="wren">import "./math" for Nums
var a = [7, 10, 2, 4, 6, 1, 8, 3, 9, 5]
var a = [7, 10, 2, 4, 6, 1, 8, 3, 9, 5]
System.print("Array : %(a)")
System.print("Array : %(a)")