When I run the following code it gives the error undefined math in the line
fmt.Println("The square root of 4 is",math.Sqrt(4))
However when i run only one method (foo or boo) no error is given.
package main
import ("fmt"
"math/rand")
func main() {
boo();
foo();
}
func boo() {
fmt.Println("A number from 1-100",rand.Intn(100))
}
func foo() {
fmt.Println("The square root of 4 is",math.Sqrt(4))
}