Write a program to input a number n and print sum of all the digit for example : if n = 6927 the output is : sum of the digit = 24
Answers
Answered by
0
Explanation:
n=123456789
s=1+2+3+4+5+6+7+8+9
print(the sum is,s)
the output will be 40
Similar questions
Computer Science,
6 months ago
Math,
6 months ago
English,
6 months ago
English,
1 year ago
Math,
1 year ago