write a program to find the volume of a sphere with radius 8.5 CM
Answers
A sphere is a perfectly round geometrical object in 3-dimensional space. It is the set of all the points located a particular distance away from a particular point called center. It is perfectly symmetrical and has no edges or vertices.
The following códes have been written using Python.
# import math module
import math
# radius = 8.5 cm
r = 8.5
# volume of sphere = 4/3*π*r³
volume = 4/3*math.pi*r* *3
# print out the volume of sphere
print("Volume of a sphere with radius 8.5 cm is", round(volume,2), "cm³." )
First we have imported the math module for pi(π). In the question it is given that the value of radius so we have taken the value of radius. After that we have printed the volume of sphere by using the formula of volume of sphere
Output
Volume of a sphere with radius 8.5 cm is 2572.44 cm³.