Tuesday , December 6 2016
Home / Blue J / Java program for armstrong number using recursion

Java program for armstrong number using recursion

This is a Java program for armstrong number. But what is an armstrong number?

An armstrong number is onw whose sum of the cube of digits is the number itself.
Example #1: 153 ; 13 + 53 + 33 = 1+ 125 + 27 = 153 (Hence Armstrong)

Example #2: 370 ; 33 + 73 + 03 = 27 + 343 + 0 = 370 (Hence Armstrong)

Important: There exist only 5 Armstrong numbers:  1, 153, 370, 371, 407

OUTPUT:

Armstrong number suing recursion
Java program for armstrong number using recursion
Also See:   program in Java/ Bluej to display the present date and the date after N days

Check Also

Program for Matrix Multiplication in JAVA

Matrix Multiplication:– Here is given a Java Program for Matrix Multiplication also call matrix product. In ...

Leave a Reply

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

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.