Sunday , December 11 2016
Home / Blue J / Java program to print the magic number series

Java program to print the magic number series

This is a Java program to print the Magic number series. However before starting let me tell you what is a magic number.

A Magic number is a number whose sum of digits eventually leads to 1.
Example#1:  19 ;  1+9 =10 ; 1+0 = 1.  Hence a magic number.
Example#2:  224; 2+2+4=10; 1+0 =1.  Hence a magic number.
Example#3:  874; 8+7+4=19; 1+9=10; 1+0=1.  Hence a magic number.

ALSO CHECK:
1. 
Java program to check for a magic number
2. C program for magic number

OUTPUT:

Java program to print magic number series
Java program to print magic number series

 

Also See:   Program for Fascinating Number in JAVA

Check Also

Program for Matrix Multiplication in JAVA

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