Check if Given number is Armstrong Number or not in Java

This article will help you to understand “Java Program Of Armstrong Number.”

Armstrong numbers (also known as narcissistic number) are the sum of their own digits to the power of the number of digits. e.g. for 371. Number of digits = 3, So 33 + 73 + 13 = 27 + 343 + 1 = 371. So this is Armstrong number.

Java Program Of Armstrong Number

Output

Is 407 Armstrong number? :- true Is 515 Armstrong number? :- false Is 371 Armstrong number? :- true
It's good to share...Share on FacebookTweet about this on TwitterShare on LinkedInPin on PinterestShare on Google+Email this to someone

Leave a Reply

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