DEV Community

Discussion on: The Happy Number Problem

 
a_b_102931 profile image
ab

The line 'sum += e * e' is what sums the digits

Thread Thread
 
haideralipunjabi profile image
Haider Ali Punjabi

Ahh, I missed the while loop there. Oops