235k views
0 votes
Write a program to accept radius and find area of circle

User Meallhour
by
5.1k points

2 Answers

2 votes

Answer:

the answer above me is correct

Step-by-step explanation:

User Ezig
by
4.9k points
1 vote

Answer:

Change it however you'd like

Step-by-step explanation:

from math import pi

def findArea(rad):

return (rad**2) * pi

#test

print(f"Area of the circle: {findArea(5)}")

User Shawn Hemelstrand
by
5.3k points