Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- naturalka = str(input("enter the number "))
- def thesum(naturalka):
- lists = list(naturalka)
- sum = 0
- if naturalka<=0
- return
- for i in lists:
- sum += int(i)
- naturalka -= sum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement