Added circle and sphere calculations

This commit is contained in:
jdavilabeaz2401 2025-11-26 13:47:30 -05:00
parent c20afad63b
commit 3ed1e411dd
2 changed files with 19 additions and 0 deletions

10
sphere1.py Normal file
View file

@ -0,0 +1,10 @@
import math
PI = math.pi
radius = float(input("Enter the radius of a sphere "))
volume = 4 / 3 * PI * radius**3
print(f"The volume of the sphere is {volume}")