Sum Of The Digits In Python || While Loop In Python || Python Program

Publié le: 08 février 2023
sur la chaîne: Aim Computer Academy
36
3

In this video we have explain the Sum of the digits of a number in Python

Code
#Sum of the digits of a number
s=0
n=int(input("Enter a number : "))
while n!=0:
tem=n%10
s=s+tem
n=int(n/10)
print("SUM : ",s)


Please subscribe our YouTube channel and click on bell Icon.

Follow us on Instagram :   / aimcomputeracademydigboi  
Join our Facebook group :   / 536687250112679  
Like our Facebook page :   / aim-ambition-in-mind-147598225929076  
#python #python3 #pythonforbeginners #pythonprogramming #pythontutorial


Sur cette page du site, vous pouvez voir la vidéo en ligne Sum Of The Digits In Python || While Loop In Python || Python Program durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Aim Computer Academy 08 février 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 36 fois et il a aimé 3 téléspectateurs. Bon visionnage!