How to find square root with Sqrt function in Go

1 Answer

0 votes
package main 
     
import ( 
    "fmt"
    "math"
) 
     
func main() { 
    var x float64
     
    x = math.Sqrt(4.82)
    fmt.Println(x)
     
    x = math.Sqrt(9)
    fmt.Println(x)
} 
   
   
   
/*
run:
   
2.195449840010015
3
  
*/

 



answered Aug 5, 2020 by avibootz

Related questions

1 answer 271 views
271 views asked Feb 29, 2020 by avibootz
1 answer 272 views
1 answer 278 views
1 answer 274 views
1 answer 347 views
1 answer 292 views
1 answer 253 views
253 views asked May 7, 2019 by avibootz
...