filmov
tv
Python Armstrong Number Program (For 3 Digit Number) - In Hindi
![preview_player](https://i.ytimg.com/vi/tdBZueNagQ0/maxresdefault.jpg)
Показать описание
Python Armstrong Number Program - In Hindi - Tutorial #24
In this video, I have explained a program to check whether a given number is Armstrong number or not. An Armstrong number is one whose sum of cube of each digits is equal to the number itself.
For Example if the given number is 153 then we have to find the sum of cube of its digits i.e. 1^3+5^3+3^3 = 153 and since the result is equal to the number itself, it is an Armstrong Number.
We will do the Armstrong Number program using While statement. While statement is used to execute a single statement or a block of statement n times till the condition is true. Every loop must contain three parts:
1. Initialization of counter variable.
2. Condition
3. Increment/Decrement of counter variable
While loop or any loop will work fine if all the three parts are there in the programs. If any one is missing the loop will not run properly.
Tags Used:
armstrong number
python
programming
python tutorials in hindi
python programs
python examples
armstrong number programs
armstrong or not
program to check for armstrong
armstrong,number
program
armstrong numbers
programs
interview
number programs
numbers
program to find armstrong
program to check a number is armstrong or not
Python Armstrong Number Program
#codeitup
#whileloop
#python
In this video, I have explained a program to check whether a given number is Armstrong number or not. An Armstrong number is one whose sum of cube of each digits is equal to the number itself.
For Example if the given number is 153 then we have to find the sum of cube of its digits i.e. 1^3+5^3+3^3 = 153 and since the result is equal to the number itself, it is an Armstrong Number.
We will do the Armstrong Number program using While statement. While statement is used to execute a single statement or a block of statement n times till the condition is true. Every loop must contain three parts:
1. Initialization of counter variable.
2. Condition
3. Increment/Decrement of counter variable
While loop or any loop will work fine if all the three parts are there in the programs. If any one is missing the loop will not run properly.
Tags Used:
armstrong number
python
programming
python tutorials in hindi
python programs
python examples
armstrong number programs
armstrong or not
program to check for armstrong
armstrong,number
program
armstrong numbers
programs
interview
number programs
numbers
program to find armstrong
program to check a number is armstrong or not
Python Armstrong Number Program
#codeitup
#whileloop
#python
Комментарии