Java Program to Check whether Given Number is Armstrong or Not

By | 20.01.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 ::

 

 

 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments