| about | help | code help+videos | done | prefs |
sumDigits
Return the sum of the digits in the positive integer n. sumDigits(123) → 6 sumDigits(0) → 0 sumDigits(10101) → 3 ...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: 200
Copyright Nick Parlante 2017 - privacy