Interview Solution

A programmer is a person who passes as an exacting expert on the basis of being able to turn out, after innumerable punching, an infinite series of incomprehensive answers calculated with micrometric precisions from vague assumptions based on debatable figures taken from inconclusive documents and carried out on instruments of problematical accuracy by persons of dubious reliability and questionable mentality for the avowed purpose of annoying and confounding a hopelessly defenseless department that was unfortunate enough to ask for the information in the first place. Grid newsmagazine

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.