How to calculate the volume of cone in Python

1 Answer

0 votes
radius = 12
height = 25
pi = 3.14159265359
      
cone_volume = pi * (radius * radius) * height / 3 
         
print("Cone volume = " + str(cone_volume))  





'''
run:

Cone volume = 3769.9111843079995

'''

 



answered Jul 14, 2021 by avibootz

Related questions

1 answer 128 views
1 answer 132 views
1 answer 125 views
1 answer 336 views
1 answer 216 views
1 answer 318 views
1 answer 152 views
152 views asked Jul 14, 2021 by avibootz
...