Volume of Cylinder in Python


Volume of Cylinder in Python 

 pi=22/7

height=float(input("Height of Cylinder :"))

radius=float(input("Radius of Cylinder : "))

volume=pi*radius*radius*height

print("Volume is : ",volume)


Output :

Height of Cylinder :15

Radius of Cylinder : 5

Volume is :  1178.5714285714284



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":...