Computer Science, asked by supriyamishra23573, 7 months ago

Write a program in java input a number and check whehter it is a happy number or not. with VDT table​

Answers

Answered by sasikiranReddy
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 dharmasahoo123
0

Answer:

cguf6fufufyfyfufufdyffyfyfyffufyf

Similar questions