From cdea7060f7df19421ba70b01c31164483279aed1 Mon Sep 17 00:00:00 2001 From: dhsandrialee <38025880+dhsandrialee@users.noreply.github.com> Date: Tue, 22 Oct 2019 14:29:09 +0800 Subject: [PATCH] Surface Area of Prism --- surface area of prism | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 surface area of prism diff --git a/surface area of prism b/surface area of prism new file mode 100644 index 0000000..5494450 --- /dev/null +++ b/surface area of prism @@ -0,0 +1,5 @@ +length = float(input(10)) +slant height = float(input(5)) +surface area of triangular sides = (4*(1/2*length*slant height)) +surface area of base = (length**2) +total surface area = (surface area of triangular sides + surface area of base)