Index

Assignment 26 CB - Array addition I

Define a function sum() and a function multiply() that sums and multiplies (respectively) all the numbers in an array of numbers. For example, sum([1,2,3,4]) should return 10, and multiply([1,2,3,4]) should return 24.

Enter an array of numbers in the field below.

// Comments in code