+ 8
Challenge:: Happy Numbers
Take a positive number. Replace it by the sum of the squares of its digits. Continue the process until the result is a one digit number. If the number ends in 1 as the one digit number, it is said to be a Happy Number. The Challenge is to Write a code to output all the Happy Number within a given range. For example 31 3²+1²=10 10 1²+0²=1 So 31 is a happy number. Come on coders, show your talent.
8 Respostas
+ 13
+ 20
https://code.sololearn.com/cQrj6XdvguyT/?ref=app
+ 4
+ 3
https://code.sololearn.com/cuJ6ekgSTyE4/?ref=app
+ 2
my too late submmit https://code.sololearn.com/cymJJVP2fNp8/?ref=app
remembered by https://www.sololearn.com/Discuss/743847/?ref=app
+ 1
I'm going to work on this later once I finish another challenge I'm working on.
+ 1
Here ya go! Checks for valid input.
https://code.sololearn.com/cApaluRzZbiI/?ref=app
0
This is not spam.
https://www.sololearn.com/Discuss/583904/?ref=app