If a five digit number is input through the keyboard write a program to calculate the sum of digits
Answers
Answered by
7
Answer:
#python program
N=int(input('Enter the number'))
Dup=N
S=0
while N>0:
D=N%10
S+=D
N//=10
print('Sum of the digits=', S)
#WMK
Similar questions