<gh_stars>0
#Python Program to Find Sum of Digits Using for Loop
num=input("Enter a number:")
sum=0
for n in num:
    sum = sum + int(n)
print(sum)

#Python Program to Find Sum of Digits Using for Loop
num=input("Enter a number:")
sum=0
for n in num:
    sum = sum + int(n)
print(sum)
#Python Program to Find Sum of Digits Using for Loop