What is an Armstrong Number?
A Number is Armstrong, if the sum of the cubes of the digits of number is equal to the number itself.
Example:
153=(1*1*1) + (5*5*5) + (3*3*3) =153
1, 153, 370, 371, 407 are possible Armstrong numbers under 1000.
Java Code to find Armstrong numbers ranging between 1 to n.
Output:
>enter the value for n 500 1 153 370 371 407