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:
153
Entered number is an armstrong number.
Enter a number to check if it is an armstrong number:
5
Entered number is not an armstrong number.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (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: , , , , , , , ,

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs