(b) What will be final value of variable tot if n=25631?
n=int(input("Enter a number:"))
tot=0
while(n>0):
dig=n%10
tot=tot+dig
n=n//10
print(tot)
Answers
Answered by
1
Answer:
^_________^^_________^^_________^^_________^
Similar questions
Math,
1 month ago
Math,
1 month ago
Math,
1 month ago
Math,
2 months ago
English,
7 months ago
Computer Science,
7 months ago
Social Sciences,
7 months ago