Skip to content
CampusEduX

Count Even and Odd Numbers

Easyjavapythonccppjavascript

Given an array of N integers, count how many elements are even and how many are odd.

Input Format

The first line contains an integer N. The second line contains N space-separated integers.

Output Format

Print two lines: Even = X Odd = Y where X is the count of even numbers and Y is the count of odd numbers.

Related Problems

  • Find the Largest Element
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Find the Smallest Element
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Find the Second Largest Element
    Easy · java, python, c, cpp, javascript
    Solve Problem

Input (stdin)

Output

Run your code to see output here...