Sign in
go
/
tour
/
a9fef78bf8606629b6d06c3a54436f6e6a34d114
/
.
/
prog
/
function-values.go
blob: 65e0c4a57091814bd37ad854104f4cd154c43f93 [
file
] [
log
] [
blame
]
package main
import (
"fmt"
"math"
)
func main() {
hypot := func(x, y float64) float64 {
return math.Sqrt(x*x + y*y)
}
fmt.Println(hypot(3, 4))
}