about | help | code help+videos | done | prefs |
Write a Java function named sumOddDigits that takes a single positive integer as input and returns the sum of all odd digits in that number.
sumOddDigits(7) → 7 sumOddDigits(2) → 0 sumOddDigits(13) → 4 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy