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)