Sum all the digits of an integer.
Given a string representing an positive integer, return the sum of all the digits of that integer.
# | Size | % | Users |
---|---|---|---|
#1 | 25 c. | Top 61% | +32 |
#2 | 26 c. | Top 65% | |
#3 | 27 c. | Top 71% | |
#4 | 28 c. | Top 75% | L |
#5 | 31 c. | Top 77% | |
#6 | 32 c. | Top 78% | |
#7 | 33 c. | Top 80% | |
#8 | 34 c. | Top 86% | |
#9 | 35 c. | Top 90% | |
#10 | 36 c. | Top 91% | |
#11 | 37 c. | Top 93% | |
#12 | 38 c. | Top 94% | |
#13 | 39 c. | Top 97% | |
#14 | 45 c. | Top 99% | |
#15 | 49 c. | Top 100% |