Practice · 3 of 6
Even or Odd
CHALLENGE
Difficulty: beginner+25 XP
**Description:** Given an integer n. Print CHAN if n is even, LE if odd.
**Input:** One integer n (−10^9 ≤ n ≤ 10^9).
**Output:** CHAN or LE.
**Example:** 10 → CHAN; 7 → LE.
*Careful:* how does C++ % behave for negative n?
Press Submit to check your solution.
Back to lesson: Practice: Starter Set