Computer Science, asked by winner162, 9 months ago

write a java program for happy number​

Answers

Answered by saimaarfain
3

Answer:

Happy Number Program in Java with Examples

19 is a happy number. 12+92 = 82 82+22 = 68 62+82 = 100 12+02+02 = 1.

31 is a happy number. 32+12 = 10 12+02 = 1. If the process loops endlessly in a cycle that does not include 1 then the number is called unhappy number or sad number.

Similar questions