From 4a26644b9d9e0697680fc277f572c15de1a49853 Mon Sep 17 00:00:00 2001 From: vnakonechnyi Date: Sat, 21 Dec 2024 20:45:14 -0500 Subject: [PATCH] Added the Rectangular Solid program --- rectanglar-solid01.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 rectanglar-solid01.py diff --git a/rectanglar-solid01.py b/rectanglar-solid01.py new file mode 100644 index 0000000..4aaa83c --- /dev/null +++ b/rectanglar-solid01.py @@ -0,0 +1,8 @@ + +length = float(input("Enter a value for length ")) +width = float(input("Enter a value for width ")) +height = float(input("Enter a value for height ")) + +volumeOfRectangle = length * width * height + +print(f"Area = {volumeOfRectangle:.2f}") \ No newline at end of file