Check for Armstrong Number

Featured image

What is an Armstrong number?

An Armstrong number is a number that is equal to the sum of the cubes of its digits for example 0, 1, 153, 370, 371, 407 etc.

Armstrong number example

For example, 153 is an Armstrong number because 153 = 111 + 555 + 333. Another example of Armstrong number is 371 because 371 = 333 + 777 + 111.

Problem Statement:

Write a program to check the number is Armstrong number is not.

Check Armstrong number in python

Share your solution to check Armstrong number.

Check All Armstrong number in python

Check Armstrong number in C++


Complexity Analysis


In this post, we have seen how to check for Armstrong number in python. If you want to solve more such problems please visit Project Euler

Thank you for reading, pls keep visiting this blog and share this in your network.