Files
lab_names/circle_area.py
Seoyeon Lee b5694ddff5 I changed name from Chris to Seoyeon.
Name is a school lunch menu and each day food that are served differ. Pizza with some salad is value.
I don't know much about programming, but I guess names are useful because value of each name can change often and name can be used to avoid typing values multiple times. It's like Excel spreedsheet?!
2024-09-10 17:40:43 -04:00

8 lines
215 B
Python

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