Last Updated: 1 Sep, 2025

Even Number Counter

Easy

Problem statement

You are given an array arr of n integers. Your task is to count how many of these integers are even.


Input Format:
The first line of input contains an integer 'n', representing the size of the array.

The second line contains 'n' space-separated integers, representing the elements of the array arr.


Output Format:
Print a single integer representing the total count of even numbers in the array.


Note:
An integer is considered even if it is perfectly divisible by 2 (i.e., number % 2 == 0).

Zero (0) is an even number.

Negative even numbers (e.g., -2, -4) should also be counted.