Write a program to calculate the sum of digits of a number.
EasyProblem Statement
Write a program to calculate the sum of digits of a number.
Sample Input
n = 123
Sample Output
Sum of digits = 6
Limits
Time: 2s · Memory: 256 MB
Write a program to calculate the sum of digits of a number.
n = 123
Sum of digits = 6
Time: 2s · Memory: 256 MB