This problem demonstrates several key concepts: Use % (modulo) to check odd/even. Even numbers have remainder when divided by .
Combine conditions with and. Both n >= 2 and n <= 5 must be true for the range check.
Think through all cases. What happens for edge cases like n=, n=, n=, n=, n=?
Order your conditions logically. Check mutually exclusive cases first (odd vs even), then narrow down within each case. These patterns recur in countless problems. Practice until they feel natural.