Sum of Even Numbers

JavaScript Easy 5 views
Back to Questions
Next Left Rotate Array (In Place) Medium N

Problem Description

Given an array of integers, print the sum of only even numbers.

Input Format

One line: n then n integers.

Output Format

One integer sum.

Sample Test Case

Input:
5 1 2 3 4 5
Output:
6

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next