Program to calculate the area of a circle given its radius.

# Area of a Circle
import math

radius = float(input("Enter the radius of the circle: "))
area = math.pi * radius ** 2
print("The area of the circle is:", area)
Output:
Enter the radius of the circle: 7
The area of the circle is: 153.93804002589985

Leave a Reply

Your email address will not be published. Required fields are marked *