package main
import (
"fmt"
"math"
)
func sphereVolume(r float64) float64 {
return 4.0 / 3.0 * math.Pi * math.Pow(r, 3)
}
func main() {
radius := 5
fmt.Println("Volume of sphere =", sphereVolume(float64(radius)))
}
/*
run:
Volume of sphere = 523.598775598299
*/