Disarium Numbers Explained for Beginners
Автор: The Debug Diaries
Загружено: 2026-01-03
Просмотров: 13
Is it a Disarium Number? Let’s find out! 🚀
In today's video, we are diving into the world of number logic to explore the Disarium Number. This is a classic programming challenge that tests your ability to handle digits, loops, and powers.
-- WHAT IS A DISARIUM NUMBER? --
A number is "Disarium" if the sum of its digits raised to the power of their positions equals the number itself.
Example: 135 = 1^1 = 1 3^2 = 9 5^3 = 125 Total: 1 + 9 + 125 = 135 (Matches!)
-- WHAT YOU WILL LEARN --
1.How to count the number of digits.
2.How to extract digits using the modulo operator.
3.How to calculate powers based on position.
4.How to compare the sum with the original number.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: