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