Write a program to calculate the sum of all even numbers in an array.
EasyProblem Statement
Write a program to calculate the sum of all even numbers in an array.
Sample Input
[1, 2, 3, 4, 5, 6]
Sample Output
Sum of even numbers: 12
Limits
Time: 2s · Memory: 256 MB