write a program to prints the sum of digits of a given number Get link Facebook X Pinterest Email Other Apps March 28, 2022 write a program to prints the sum of digits of a given number . x=input() s=0 for i in str(x): s+=int(i) print(s) Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment