import kotlin.math.PI
import kotlin.math.pow
fun sphereVolume(r: Double): Double {
return 4.0 / 3.0 * PI * r.pow(3)
}
fun main() {
val radius = 5.0
println("Volume of sphere = ${sphereVolume(radius)}")
}
/*
run:
Volume of sphere = 523.5987755982989
*/