write a program in python to show the su. of three digits given by user
Answers
Answered by
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
0
Answer:
are you using twitter?
Similar questions