Sum and product of an array: Difference between revisions

Content added Content deleted
(Add bruijn)
Line 934: Line 934:
{{Out}}
{{Out}}
<pre>77.9699690</pre>
<pre>77.9699690</pre>

=={{header|Bruijn}}==
<syntaxhighlight lang="bruijn">
:import std/List .
:import std/Math .

arr (+1) : ((+2) : ((+3) : {}(+4)))

main [∑arr : ∏arr]
</syntaxhighlight>


=={{header|C}}==
=={{header|C}}==