ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

A python program to find the sum of digits of a given number using while loop

Автор: Recursive Coding

Загружено: 2025-06-20

Просмотров: 32

Описание: The algorithm behind this program is:
Take two variables, one to store the number and other to store the sum value.
Make 0 as the initial value of the variable used in the program to store the sum.
a. Obtain the last digit(remainder) of the given number by dividing it by 10, i.e, num % 10
b. After obtaining the last digit, add it to the current sum value.
c. Divide the number by 10 to extract the remaining number

Repeat the process a, b and c as long as the number is not equal to zero. When the loop ends the final value of sum is obtained.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
A python program to find the sum of digits of a given number using while loop

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]