File size: 183 Bytes
2271a07
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import math

# Get radius from user
r = float(input("Enter the radius: "))

# Calculate the area
area = math.pi * (r**2)

# Print the result
print("The area of the circle is:", area)