From 308225be02356503f87d3a13af5d9087c448e8a9 Mon Sep 17 00:00:00 2001 From: AnamikaDubey23 <73220292+AnamikaDubey23@users.noreply.github.com> Date: Wed, 21 Oct 2020 14:06:33 +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..4b4bfd7 100644 --- a/python/circle area.py +++ b/python/circle area.py @@ -1,5 +1,6 @@ +from math import pi as PI r=int(input("enter the radius of circle:")) -area=22/7*r*r -perimeter=2*22/7*r +area=PI*r*r +perimeter=2*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)