Even Odd - I
You are given an integer N. Determine whether N is even or odd using a conditional statement.
A number is even if it is divisible by 2; otherwise, it is odd.
Input
- The input contains one integer N.
Output
- Print Even if N is divisible by 2. Otherwise, print Odd. Print the result without labels or trailing spaces.
Example 1:
Input:
4
Output:
Even
Explanation:
4 is divisible by 2, so it is even.
Example 2:
Input:
7
Output:
Odd
Explanation:
7 is not divisible by 2, so it is odd.
Now Your Turn!
Pick the correct output for the given inputInput:
12
Still unsure what the problem is asking ?
Let’s go through a few more examples, step by step, to make it clearer.
Constraints:
- -100 <= N <= 100