0
Write a program in JAVA to check whether a number is a happy number or not.
a happy number is one in which the sum of the square of the digits is equal to 1.
3 Answers
+ 7
@blackcat that is true, I did not think of that
+ 6
Looks like the only happy number is 1
+ 3
@Yerucham By @Alok Agarwal's definition, all powers of ten greater than one are happy too.