Skip to main content

Practice · 1 of 5

Sum of even digits (recursive)

CHALLENGE
Difficulty: intermediate+25 XP

Recursively sum the **even digits** of a non-negative number (contribute 0 for odd digits). No loops. Examples: 2468 → 20; 135 → 0; 0 → 0.

Back to lesson: Practice: Method mastery gauntlet