Write a Python function To Calculate Volume OF Cylinder


Topic: Write a Python function To Calculate Volume OF Cylinder

Solution

pi = 22/7
def volume(r, h): 
    vol = pi * r * r * h 
    return vol 
r = 5
h = 8
print("Volume Of Cylinder = ",volume(r, h)) 



List all Python Programs