Volume of cone In Python

Find the Volume of Cone in Python

 h=float(input("Enter Height :"))

r=float(input("Enter Radius :"))
pie=3.14 volume=pie*(r*r)*h/3
print("Volume of Cone is ", volume)

Output :

Enter Height :10 Enter Radius :5 Volume of Cone is 261.6666666666667


0 comments:

Post a Comment

gurnoorsingh5974@gmail.com

Count Upper Case and Lower Case Word in a string (Python)

  Count Upper Case and Lower Case Word in a string     (Python) def string_test(s):     d={"UPPER_CASE":0, "LOWER_CASE":...