The following code snippet shows the calculation of volume and surface area of a sphere | Volume and surface area of a ball