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 269 views
269 views asked Feb 29, 2020 by avibootz
1 answer 269 views
1 answer 275 views
1 answer 272 views
1 answer 343 views
1 answer 288 views
1 answer 250 views
250 views asked May 7, 2019 by avibootz
...