Added circle and sphere calculations
This commit is contained in:
parent
b0f5d943be
commit
195a455032
4 changed files with 19 additions and 15 deletions
9
homework06/git-practice/circle1.py
Normal file
9
homework06/git-practice/circle1.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import math
|
||||
PI = math.pi
|
||||
|
||||
radius = float(input("Enter the radius of a circle "))
|
||||
|
||||
area = PI * radius**2
|
||||
|
||||
print(f"The area is {area}")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue