Skip to content
Sign upLog in
← Back to Community

Sum of digits

Profile icon
TheHappyCow

How to get the sum of digits of an number that the user inputs? I have no clue how to start! C:

Voters
Profile icon
TheHappyCow
Comments
hotnewtop
Profile icon
Wumi4

Do you mean calculate sum like 125 is 1 + 2 + 5?

Profile icon
TheHappyCow

@Wumi4
Yes! Exactly