Answer to Question #15626 in Java | JSP | JSF for dave
A happy number is built by adding the squares of its digits, doing this permanently, the numbers will end in 1 or 4.
if a positive integer ends with 1, then it is a happy number.
the first few happy numbers are: 1,7,10,13,19,23,28 ...
solution : 13 = 1^2 +3 ^2 = 1+9 = 10
10 = 1^2 + 0+2 = 1+0 = 1
how many positive happy numbers are there in less than 300,000?
* @param args
public static void
static int getSqSumm(int numb)
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!