Sum and product of an array: Difference between revisions

PascalABC.NET
(PascalABC.NET)
Line 2,661:
=={{header|Pascal}}==
See [[Sum_and_product_of_an_array#Delphi | Delphi]]
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
var a := Arr(1..9);
Print(a.Sum,a.Product);
</syntaxhighlight>
{{out}}
<pre>
45 362880
</pre>
 
=={{header|Perl}}==
218

edits