Interview Solution

The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague. Edsger Dijkstra

Armstrong Number

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

Comments


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!

				    

Comments

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



Please login to add comments.