Computer Science, asked by anushkaahuja21064, 4 months ago

WAP to accept the perimeter of a circle from the user ad then compute its area.

Answers

Answered by jai696
5

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

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}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions