Posts

Showing posts with the label sum of digits

sum of digits

sum of digits       n=int(input())      s=0      for i in str(n):          s+=int(i)      print(s)