Java Program to Check whether Given Number is Armstrong or Not

By | January 20, 2017

Java Program to Check whether Given Number is Armstrong or Not


Armstrong number is a number that is the sum of its own digits each raised to the power of the number of digits is equal to the number itself.

For example:
Three Digits Armstrong number is 153, 1 ^ 3 + 5 ^ 3 + 3 ^ 3 = 153

Four Digits Armstrong number is 1634, 1 ^ 4 + 6 ^ 4 + 3 ^ 4 + 4 ^ 4 + = 1634

and So on……..


SOURCE CODE ::

 

 

OUTPUT ::

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *