Sum of Positive Even Numbers in Array Code func sumOfPositiveEvenNumbers(_ numbers:[Int]) -> Int { var sum = 0 for num in numbers { if num > 0 && num % 2 == 0 { sum = sum + num } } return sum } Example // Example usage let arr = [1,2,3,4,5,6] print(sumOfPositiveEvenNumbers(arr)) Output 12