Armstrong Number

Posted on December 28, 2014 by

An Armstrong number is a number such that the sum of its digits raised to the third power is equal to the number itself.

For example, 371 is an Armstrong number, since 3^3 + 7^3 + 1^3 = 371.

Another example, 153. 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153.

Program to find whether the given number is an Armstrong number or not.

C

loading...

Fork Download

Python

loading...

Fork Download

JavaScript

loading...

Fork Download

This website is made possible by displaying online advertisements to our visitors.
Please consider supporting by disabling your ad blocker.
loading comments...