Sum of Even Elements

Easy · rating 900 · Arrays, Math

The first line contains n. The second line has n integers. Print the sum of the ones that are even.

Constraints: 1 ≤ n ≤ 105

Related problems

Open Sum of Even Elements in Code Arena →