Count Odd Numbers Problem

Count Odd Numbers Problem — ExecCode School DSA Practice

Solve the Count Odd 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 Odd Numbers. Count how many numbers are odd (cannot be divided by 2 evenly) and print that count.

Examples

Input 5 1 2 3 4 5; Output 3. Input 3 10 20 30; Output 0

Constraints

1 <= N <= 1000

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