Python program to find sum of digits of a number using while loop #shorts #pythonprojects #python3

preview_player
Показать описание
#happynewyear #happynewyear2023 #happynewyearvideo #python #pythonprogramming #pythontutorial #pythoncourse #pythontutorial #shorts #short #python3 #pythondeveloper #pythondevelopers #pythonforbeginners #pythonprojects #mybloopers #youtube #youtubeshorts
Рекомендации по теме
Комментарии
Автор

a=input("Enter any number you want:")
summ=0
for i in range(len(a)):
summ=summ+int(a[i])
print("Sum of digits of given number", summ)

Callofdutymobileu