sum of digits Get link Facebook X Pinterest Email Other Apps March 29, 2022 sum of digits n=int(input()) s=0 for i in str(n): s+=int(i) print(s) Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment