SyntaxFix
Write A Post
Hire A Developer
Questions
How about the simple way of
for (var i = 0; i < n; i++) { sum = sum + Int(multiples[i])! }
//where n = number of elements in the array