Computer Science, asked by SiddharthvKutty, 10 months ago

Write a program in java to find whether the input number is a happy mumber or not.

-Thanks in advance​

Answers

Answered by XtylishAlok11
1

Explanation:

If the number is greater than 0, then calculate remainder rem by dividing the number with 10.

If the number is greater than 0, then calculate remainder rem by dividing the number with 10.Calculate square of rem and add it to a variable sum.

If the number is greater than 0, then calculate remainder rem by dividing the number with 10.Calculate square of rem and add it to a variable sum.Divide number by 10.

Similar questions