about | help | code help+videos | done | prefs |
Write a method that returns the sum of the EVEN digits in 'num'. For example, if 'num' is 2514387, you would return 14 since 2+4+8=14. As a precondition, you may assume that 'num' is non-negative. Look at the test data for additional examples. quiz2024_02_20_APP1SLHL_evenDigitSum(124786) → 20 quiz2024_02_20_APP1SLHL_evenDigitSum(0) → 0 quiz2024_02_20_APP1SLHL_evenDigitSum(6) → 6 ...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: 250
Copyright Nick Parlante 2017 - privacy