Write a Python function to return the volume of the rectangular right wedge


Topic: Write a Python function to return the volume of the rectangular right wedge

Solution

def volumeRec(a, b, e, h) : 
    return (((b * h) / 6) * (2 * a + e))
a = 2; b = 5; e = 5; h = 6; 
print("Volume = ",volumeRec(a, b, e, h))



List all Python Programs