From 3d2870eb2cfe8fac3da8343c066240a4d005b300 Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sun, 7 Feb 2021 17:07:01 -0500 Subject: [PATCH] Solve 5.3.3 --- 5/5.3/5.3.3/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 5/5.3/5.3.3/main.py diff --git a/5/5.3/5.3.3/main.py b/5/5.3/5.3.3/main.py new file mode 100644 index 0000000..eae0ea8 --- /dev/null +++ b/5/5.3/5.3.3/main.py @@ -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)) \ No newline at end of file