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)