Python Program to check Armstrong number
Oct 20, 2020
What is Armstrong number?
A number is called Armstrong number if it is equal to the sum of the cubes of its own digits. For example: 153 is an Armstrong number since 153 = 1*1*1 + 5*5*5 + 3*3*3. The Armstrong number is also known as narcissistic number.
For a 4 digit number, every digit would be raised to their fourth power to get the desired result. 1634, 8208, 9474 are a few examples of a 4 digit Armstrong number. For example: 1634 is an Armstrong number since 1634=1*1*1*1+ 6*6*6*6+3*3*3*3+4*4*4*4.
Output: