X40: Sum 3 integers in array

Given an array containing three ints, return the sum of all the elements. It is safe to assume that the array always has at least 3 elements.

Examples:

sum3({1, 2, 3}) -> 6
sum3({5, 11, 2}) -> 18

Your Answer:

Reset

Feedback

Your feedback will appear here when you check your answer.