Computer Science, asked by Anonymous, 9 months ago

write a program in python to show the su. of three digits given by user​

Answers

Answered by Anonymous
0

Explanation:

n=int(input("enter a three digit number"))

sum=0

while (True):

int d=n%10

sum+=d

n//=10

print("the sum of the number is %i"%sum)

Answered by Anonymous
0

Answer:

are you using twitter?

Similar questions