Write a program in java input a number and check whehter it is a happy number or not. with VDT table
Answers
Answered by
2
Answer:
public class HappyNumber.
{
//isHappyNumber() will determine whether a number is happy or not.
public static int isHappyNumber(int num){
int rem = 0, sum = 0;
//Calculates the sum of squares of digits.
while(num > 0){
rem = num%10;
Answered by
0
Answer:
cguf6fufufyfyfufufdyffyfyfyffufyf
Similar questions