X319: sphereVolume

Given an integer representing the radius of a sphere, compute and return the sphere's volume based on the following formula:

Volume = 4/3 x Pi x radius3

Examples:

sphereVolume(5) -> 523.598775598
sphereVolume(12) -> 7238.229473871

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.