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)