Posts

Showing posts from February, 2020

Happy Number in JAVA

Image
Happy Number Happy Number : A Happy Number is defined as : Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1. Example :- Input                     : 49 Output                 : It is a Happy Number Input                     : 4 Output                 : It is not a Happy Number Algorithm, Program and Video Link given below :-