Interview Solution

Let us change our traditional attitude to the construction of programs. Instead of imagining that our main task is to instruct a computer what to to, let us concentrate rather on explaining to human beings what we want a computer to do. Donald Knuth

Armstrong Number

Language Java | Level Intermediate | Category Interview Problems | July 24, 2015 4:52 pm

Interview Problem

An Armstrong Number is a number that is the sum of its own digits each raised to the power of the number of digits
Armstrong numbers are those numbers in which sum of cube of all digits provides the same number.
Example:-
153
1^3 = 1
5^3 = 125
3^3 = 27
1^3 + 5^3 + 3^3
= 1 + 125 + 27
= 153

Output

```
153 is an Armstrong Number!
12 is not an Armstrong Number!

``` Posted by selvamselvam
December 6, 2015 2:48 am

We would like to know more about Armstrong Number Posted by
December 6, 2015 2:52 am

Can you give alternative approch? Posted by selvamselvam
December 6, 2015 4:48 am

test1 Posted by selvamselvam
December 6, 2015 4:50 am

hello Posted by panuganti.venkiii
July 3, 2016 11:43 pm

thanks for sharing testing interview questions