Solve 5.3.3
This commit is contained in:
parent
048c002e69
commit
3d2870eb2c
|
@ -0,0 +1,9 @@
|
|||
|
||||
def pyramid_volume(base_length, base_width, pyramid_height):
|
||||
return(((base_length * base_width) * pyramid_height) * (1/3))
|
||||
|
||||
|
||||
length = float(input())
|
||||
width = float(input())
|
||||
height = float(input())
|
||||
print('Volume for 4.5, 2.1, 3.0 is:', pyramid_volume(length, width, height))
|
Loading…
Reference in New Issue