Write a function to find the sum of digits of a number (456).
MediumProblem Statement
Write a function to find the sum of digits of a number (456).
Sample Input
456
Sample Output
Sum of digits: 15
Limits
Time: 2s · Memory: 256 MB
Write a function to find the sum of digits of a number (456).
456
Sum of digits: 15
Time: 2s · Memory: 256 MB