You are here: Home / Topics / Write a Python program to get the the volume of a sphere with radius 6

Write a Python program to get the the volume of a sphere with radius 6

Filed under: Python on 2023-09-23 06:47:03

pi = 3.1415926535897931
r= 6.0
V= 4.0/3.0*pi* r**3
print('The volume of the sphere is: ',V)    

Output:

The volume of the sphere is:  904.7786842338603 
 


About Author:
M
Mr. Dubey     View Profile
Founder of MCQ Buddy. I just like to help others. This portal helps students in getting study material free. Share your stuff here so that others can get benefitted.