Skip to content

Commit

Permalink
Update crd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kingofhenz authored Jun 8, 2022
1 parent a12adee commit 5e655cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crd.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
crd = input("do you have the circumfrence, radius, or diameter: ")
irf = float(input("Enter the " + crd + " " + "of the circle: "))
if crd == "radius":
radius = float(radius)
area = pi * radius * radius
crd = float(irf)
area = pi * irf * irf
print("The area of the circle is: " + str(area))
diameter = 2 * radius
diameter = 2 * irf
print("The diameter of the circle is: " + str(diameter))
circumference = 2 * pi * radius
circumference = 2 * pi * irf
print("The circumference of the circle is: " + str(circumference))
print("******************************************************************************************")
if crd == "diameter":
Expand Down

0 comments on commit 5e655cc

Please sign in to comment.