generated from mwc/lab_names
13 lines
355 B
Python
13 lines
355 B
Python
# circle_area.py
|
|
# --------------
|
|
# By MWC Contributors
|
|
|
|
print("This program will calculate the area of a circle.")
|
|
radius = float(input("What is the circle's radius? "))
|
|
circle_area = radius * radius * 3.14
|
|
circle_areastr = str(circle_area)
|
|
radiusstr = str(radius)
|
|
|
|
print ("The area of a circle with a raduis of " + radiusstr + " is " + circle_areastr)
|
|
|