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

Publicado el: 08 febrero 2023
en el canal de: 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


En esta página del sitio puede ver el video en línea Sum Of The Digits In Python || While Loop In Python || Python Program de Duración hora minuto segunda en buena calidad , que subió el usuario Aim Computer Academy 08 febrero 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 36 veces y le gustó 3 a los espectadores. Disfruta viendo!