Computer Science, asked by bolt3193, 1 year ago

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 manish31rinki
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