From 3605d2eadbc556f86bd4f91509960f53adf251f0 Mon Sep 17 00:00:00 2001 From: Bea05RJ <44458363+Bea05RJ@users.noreply.github.com> Date: Wed, 23 Oct 2019 23:31:26 +0800 Subject: [PATCH] t13_areaofsphere1.py Koh Beatrix 2H Area of Sphere --- t13_areaofsphere1.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 t13_areaofsphere1.py diff --git a/t13_areaofsphere1.py b/t13_areaofsphere1.py new file mode 100644 index 0000000..1e1015f --- /dev/null +++ b/t13_areaofsphere1.py @@ -0,0 +1,6 @@ +pi = 3.14159 +diameter = float(input("Enter the diameter of the sphere: ")) +radius = diameter/2 + +area_of_sphere = (4/3)*pi*(radius**3) +print(area_of_sphere)