Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHappyNumber ¶
IsHappyNumber reports if the number n is "happy", i.e., iterative sum of squares of its digits leads to 1.
Example ¶
package main
import (
"fmt"
"github.com/skhal/lab/iq/20/number"
)
func main() {
fmt.Println(number.IsHappyNumber(1))
fmt.Println(number.IsHappyNumber(2))
}
Output: true false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.