Commit 27639017 authored by Sai Mounika's avatar Sai Mounika

Add new file

parent 74517efc
n=input("enter a number")
sum=0
while(n>0):
r=n%10
n=n/10
sum+=r
print(sum)
"""output:
enter a number 27456
24"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment