Sum and product of an array: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
(PascalABC.NET) |
||
Line 2,661: | Line 2,661: | ||
=={{header|Pascal}}== |
=={{header|Pascal}}== |
||
See [[Sum_and_product_of_an_array#Delphi | Delphi]] |
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}}== |
=={{header|Perl}}== |