Anonymous user
Sum and product of an array: Difference between revisions
m
→{{header|REXX}}: added a comment, corrected a misspelling. -- ~~~~
Capra Hircus (talk | contribs) |
m (→{{header|REXX}}: added a comment, corrected a misspelling. -- ~~~~) |
||
Line 1,317:
=={{header|REXX}}==
<lang rexx>/*REXX program to add and
numeric digits 30 /*allow 30-digit numbers (default is 9)*/
Line 1,332:
say ' sum of' y.0 "elements for the Y array is:" sum
say 'product of' y.0 "elements for the Y array is:" prod
/*stick a fork in it, we're done. */</lang>
'''output'''
<pre style="overflow:scroll">
|