You are given a list of integers. Count how many of them are even.
This problem is part of Arrays practice and is designed to strengthen the Traversal pattern.
Return one integer: the number of even values.
Input:
8
-23 -9 5 19 33 47 61 -22
Output:
1
Explanation:
1 <= n <= 10^5-10^9 <= value <= 10^9Implement the starter function for this Easy problem. Read from the raw input string and return only the required answer, with no labels or debug text.
Run Code checks the visible sample cases. Submit checks those samples plus additional hidden cases that follow the same input format and constraints.
8 -23 -9 5 19 33 47 61 -22
1