Javatpoint Logo
Javatpoint Logo

Python Program to Check Armstrong Number

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.

See this example:

Output:

Python Condition And Loops10



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA