From 5e655ccd9889887223482847c912cfec0b6b40c6 Mon Sep 17 00:00:00 2001 From: kingofhenz <93614808+kingofhenz@users.noreply.github.com> Date: Wed, 8 Jun 2022 16:33:27 -0400 Subject: [PATCH] Update crd.py --- crd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crd.py b/crd.py index 97a8240..835acdc 100644 --- a/crd.py +++ b/crd.py @@ -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":