lab_names/circle_area.py

9 lines
227 B
Python

# circle_area.py
# --------------
# By MWC Contributors
import math
print("This program will calculate the area of a circle.")
radius = float(input("What is the circle's radius? "))
area = math.pi * radius * radius
print(area)