id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > sumEvenDigitsOld
prev  |  next  |  chance

Given a positive integer input parameter, return the sum of the even digits of that number. For example sumEvenDigits(47732) returns 6 since 4+2=6 and 4 and 2 are the only even digits in that number.


sumEvenDigitsOld(458) → 12
sumEvenDigitsOld(1379) → 0
sumEvenDigitsOld(2884) → 22

...Save, Compile, Run (ctrl-enter)

public int sumEvenDigitsOld(int num) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 440

Copyright Nick Parlante 2017 - privacy