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 54% | +35 |
#2 | 26 c. | Top 57% | |
#3 | 27 c. | Top 62% | |
#4 | 28 c. | Top 65% | L |
#5 | 31 c. | Top 67% | |
#6 | 32 c. | Top 69% | |
#7 | 33 c. | Top 70% | |
#8 | 34 c. | Top 77% | |
#9 | 35 c. | Top 81% | |
#10 | 36 c. | Top 83% | |
#11 | 37 c. | Top 85% | |
#12 | 38 c. | Top 87% | |
#13 | 39 c. | Top 90% | |
#14 | 41 c. | Top 92% | |
#15 | 42 c. | Top 93% | |
#16 | 45 c. | Top 95% | |
#17 | 47 c. | Top 98% | |
#18 | 49 c. | Top 99% | |
#19 | 287 c. | Top 100% |