From 5063a396137edcd862aeaa7c7320fd6350847b58 Mon Sep 17 00:00:00 2001 From: GarimaDubey30 <73238370+GarimaDubey30@users.noreply.github.com> Date: Wed, 21 Oct 2020 20:10:55 +0530 Subject: [PATCH] Update circle area.py --- python/circle area.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/circle area.py b/python/circle area.py index 81e4515..47646d0 100644 --- a/python/circle area.py +++ b/python/circle area.py @@ -1,5 +1,6 @@ +import math r=int(input("enter the radius of circle:")) -area=22/7*r*r -perimeter=2*22/7*r +area=math.pi*r*r +perimeter=2*math.pi*r print("area of circle is : ", area) -print("perimeter of circle is : ", perimeter) \ No newline at end of file +print("perimeter of circle is : ", perimeter)