Calculate the sum of digits of a number.
EasyProblem Statement
Calculate the sum of digits of a number.
Sample Input
num = 1234
Sample Output
Sum = 10
Limits
Time: 2s · Memory: 256 MB
Calculate the sum of digits of a number.
num = 1234
Sum = 10
Time: 2s · Memory: 256 MB