Computer Science, asked by yashjain2099, 5 months ago

(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 level133333
1

Answer:

^_________^^_________^^_________^^_________^

Similar questions