about | help | code help+videos | done | prefs |
Write a RECURSIVE method to find the sum of the EVEN digits of 'num'. You MUST use recursion. No strings or string methods are allowed. Remember div "/" and mod "%"? Those are REALLY helpful, so use them! Remember, your solution MUST be recursive. sumEvenDigits(26) → 8 sumEvenDigits(64) → 10 sumEvenDigits(74218) → 14 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 390
Copyright Nick Parlante 2017 - privacy