Sign in
android
/
platform
/
prebuilts
/
go
/
windows-x86
/
7fb3c4cd96adbd78ba51a9b3fdb812e3091bf9fa
/
.
/
misc
/
tour
/
content
/
flowcontrol
/
if.go
blob: 1d6d841dbc5758b24717396f58d7c16e36b12d01 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import (
"fmt"
"math"
)
func sqrt(x float64) string {
if x < 0 {
return sqrt(-x) + "i"
}
return fmt.Sprint(math.Sqrt(x))
}
func main() {
fmt.Println(sqrt(2), sqrt(-4))
}