Computer Science, asked by shubham995731, 1 year ago

write a python program to enter a multidigit number as=1234 then print their sum 1234=10 in loop ​

Answers

Answered by prohunter
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???
ASweety1431: u know Python programming language ????
Similar questions