Java Program to Check Armstrong Number

This is simple Java program to check Armstrong number. When you execute this program, it asks to enter any number and then it will check whether entered number is Armstrong number or not. At the end of this tutorial, I have shared the execution output for two numbers one for Armstrong and another for the non-Armstrong number.

Java Program to check Armstrong Number

Copy the below program and execute it to check the Armstrong number.

Program Output

Enter a number to check if it is an armstrong number:
Entered number is an armstrong number.
Enter a number to check if it is an armstrong number:
Entered number is not an armstrong number.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , , , ,