9 lines
135 B
Python
9 lines
135 B
Python
import math
|
|
PI = math.pi
|
|
|
|
radius = float(input("Enter the radius of a circle "))
|
|
|
|
area = PI * radius**2
|
|
|
|
print(f"The area is {area}")
|
|
|