Task

Compute the sum and product of an array of integers.




Sum and Product of Numbers as a Piece of Cake.
 
This recipe sums N given numbers.
 
Ingredients.
1 N
0 sum
1 product
1 number
 
Method.
Put sum into 1st mixing bowl.
Put product into 2nd mixing bowl.
Take N from refrigerator.
Chop N.
Take number from refrigerator.
Add number into 1st mixing bowl.
Combine number into 2nd mixing bowl.
Chop N until choped.
Pour contents of 2nd mixing bowl into the baking dish.
Pour contents of 1st mixing bowl into the baking dish.
 
Serves 1.