WAP to accept the perimeter of a circle from the user ad then compute its area.
Answers
Answered by
5
from math import pi
def area_circle(p):
d = p / pi
r = d / 2
return (r * r) * pi
p = float(input("enter perimeter: "))
print(f"area: {area_circle(p):.2f}")
Similar questions