write a python program to enter a multidigit number as=1234 then print their sum 1234=10 in loop
Answers
Answered by
2
number = raw_input()
c=10
s=0
temp=int(number)
while temp!=0:
s=s+(temp%c)
temp=temp/c
print s
ASweety1431:
excuse me???
Similar questions