sum() Example 2 sum() Example 2 This example defines an array [6,4,9,10,8] and then prints out the sum of the squares of those numbers.
This example defines an array [6,4,9,10,8] and then prints out the sum of the squares of those numbers.