What is Armstrong Number ?
In an Armstrong Number, the sum of power of individual digits is equal to number itself.
In other words the following equation will hold true
xy..z = xn + yn+.....+ zn
n is number of digites in number
For example this is a 3 digit Armstrong number
370 = 33 + 73 + o3
= 27 + 343 + 0
= 370
Examples of Armstrong Numbers
0, 1, 4, 5, 9, 153, 371, 407, 8208, etc.
Let’s write this in a program:
Java Program to check whether a number is Armstrong Number