From 687809964c576fcd377cab06aedd2bd6a6190063 Mon Sep 17 00:00:00 2001 From: mahimadubey <54871679+mahimadubey@users.noreply.github.com> Date: Tue, 20 Oct 2020 15:54:21 +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)