Even or Odd Problem

Even or Odd Problem — ExecCode School DSA Practice

Solve the Even or Odd problem on ExecCode. Free online school DSA practice in Input & Basic Conditions. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a whole number N. Your task is to check whether N is Even or Odd. A number is Even if it can be divided by 2 with nothing left over. Otherwise, the number is Odd.

Examples

Input 4; Output Even. Input 7; Output Odd

Constraints

-10^4 <= N <= 10^4

Practice Even or Odd free on ExecCode. Browse DSA problems, topic map, and placement guides.