Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Square Root in Go

package main 
  
import ( 
    "fmt"
    "math"
) 
  
func main() { 
     res1 := math.Sqrt(36)
     res2 := math.Sqrt(100)
     res3 := math.Sqrt(20)
     
     fmt.Printf("Result 1: %.1f", res1) 
     fmt.Printf("\nResult 2: %.1f", res2) 
     fmt.Printf("\nResult 3: %.1f", res3)
}