(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
English,
2 months ago
Math,
2 months ago
English,
2 months ago
Math,
5 months ago
English,
10 months ago
Computer Science,
10 months ago
Social Sciences,
10 months ago