Count Even Numbers Problem

Count Even Numbers Problem — ExecCode School DSA Practice

Solve the Count Even Numbers problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a list of whole numbers. Your task is to solve Count Even Numbers. Count how many numbers are even (can be divided by 2) and print that count.

Examples

Input 5 1 2 3 4 5; Output 2. Input 3 2 4 6; Output 3

Constraints

1 <= N <= 1000

Practice Count Even Numbers free on ExecCode. Browse DSA problems, topic map, and placement guides.