Sum and product of an array: Difference between revisions

m
→‎{{header|REXX}}: added a comment, corrected a misspelling. -- ~~~~
m (→‎{{header|REXX}}: added a comment, corrected a misspelling. -- ~~~~)
Line 1,317:
 
=={{header|REXX}}==
<lang rexx>/*REXX program to add and seperatelyseparately multiply elements of an array. */
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</lang>
 
/*stick a fork in it, we're done. */</lang>
'''output'''
<pre style="overflow:scroll">