Python programming codes
43 subscribers
25 photos
1 video
83 files
82 links
Uploading All programming codes are updating Daily
ask doubts in comment box đŸŽâ˜‘ī¸
Download Telegram
#sum of digits

#while_loop

n = int(input("enyer the value : "))

sum = 0
while n != 0:
rem = n%10
sum += rem
n = n//10

print("sum of digits",sum)