Programming Examples
Python program to print the volume of a cylinder when radius and height of the cylinder is given by user
WAP to print the volume of a cylinder when radius and height of the cylinder is given by user.
area =πr2h
Solution
r=int(input("Enter the radius : "))
h=int(input("Enter the height : "))
vol=3.14*r*r*h
print("Volume of Cylinder is : ",vol)
Output